14:14 <+bridge> [ddnet] Hello, I need some help. 14:14 <+bridge> [ddnet] I have made server side bots, but I can't get them to walk or shit, whenever I force them to move (m_Input.m_Direction = 1; for example for walking right) they just dont walk. Any ideas why? Do their inputs get blocked sonewhere? In an older mod it worked (based on 9.0.2). (my mod is based on 11.9) 14:45 <+bridge> [ddnet] Logging expensive queries is super useful 14:45 <+bridge> [ddnet] select l.Timestamp, l.Map, Name, Time from (select Timestamp, Map, Name, Time from record_race ) as l join record_maps on l.Map = record_maps.Map and record_maps.Server = 'Novice' order by l.Timestamp desc limit 10; 14:46 <+bridge> [ddnet] Took 10 seconds, then changed it and now runs in 0.00 s: select l.Timestamp, l.Map, Name, Time from (select Timestamp, Map, Name, Time from record_race order by Timestamp desc) as l join record_maps on l.Map = record_maps.Map where Server = 'Novice' limit 10; 14:47 <+bridge> [ddnet] for another one added an index and it went from 200 s to 0.00 s 14:51 <+bridge> [ddnet] :monkaS: 14:52 <+bridge> [ddnet] 200s? 14:52 <+bridge> [ddnet] what query was that 14:52 <+bridge> [ddnet] xD 14:53 <+bridge> [ddnet] https://ddnet.tw/ranks/old generation 14:54 <+bridge> [ddnet] because we had no index on server name and there are no recent OLD server finishes, so this kept taking longer and long 14:54 <+bridge> [ddnet] er 14:59 <+bridge> [ddnet] The query above is wrong though, can't optimize it that easily 😄 18:32 <+bridge> [ddnet] wdym by logging? where do you log them to? 18:54 <+bridge> [ddnet] to a file on the disk 18:54 <+bridge> [ddnet] https://dev.mysql.com/doc/refman/8.0/en/slow-query-log.html 19:13 <+bridge> [ddnet] ah 19:13 <+bridge> [ddnet] only for website not for tw srv i guess 19:44 <+bridge> [ddnet] yes 21:21 <+bridge> [ddnet] should be possible to sync envelopes with map sounds right? anyone expierenc ewith this? 21:28 <+bridge> [ddnet] i have a 15 sec andimation and a 15 sec opus file but they are totally off directly on server start after 3 secs 21:37 <+bridge> [ddnet] seems like my 15 seconds animations is alread starting a new loop after 12 secs server time 21:37 <+bridge> [ddnet] ?? dfq 21:40 <+bridge> [ddnet] Mapsounds seem to start with server start offset 0 and envelopes seem to have a random offset -.- this is kinda useless how are you supposed to make tw animations with sound 21:45 <+bridge> [ddnet] commit name "harmless gcc warnings" 21:45 <+bridge> [ddnet] 21:45 <+bridge> [ddnet] actual changes sneaky not rendering ghost page anymore o.O 21:45 <+bridge> [ddnet] :troll: 21:46 <+bridge> [ddnet] maybe the warning 21:46 <+bridge> [ddnet] told him about it 21:46 <+bridge> [ddnet] might be duplicated 21:46 <+bridge> [ddnet] hm 21:46 <+bridge> [ddnet] but still xd 21:46 <+bridge> [ddnet] OUR_FLAGS_OWN 21:46 <+bridge> [ddnet] our 21:46 <+bridge> [ddnet] own 21:46 <+bridge> [ddnet] xd 21:46 <+bridge> [ddnet] our_own_mine_flags 21:47 <+bridge> [ddnet] xd 21:47 <+bridge> [ddnet] yo ryo fix mapsound envelope sync! 21:47 <+bridge> [ddnet] idk never touched that 21:47 <+bridge> [ddnet] im rewatching mr robot rn 21:47 <+bridge> [ddnet] idk either 21:47 <+bridge> [ddnet] i dont get envelopes code 21:47 <+bridge> [ddnet] :poggers: 21:47 <+bridge> [ddnet] which episode r u? 21:47 <+bridge> [ddnet] im downloading "legally" it rn 21:48 <+bridge> [ddnet] so u didnt start yet 21:48 <+bridge> [ddnet] but i alreayd seen the serie 21:48 <+bridge> [ddnet] 2 times 21:48 <+bridge> [ddnet] its my 3rd 21:48 <+bridge> [ddnet] lol 21:48 <+bridge> [ddnet] i just like it too much 21:48 <+bridge> [ddnet] watches first season 1.5 times 21:48 <+bridge> [ddnet] watched* 21:48 <+bridge> [ddnet] ? 21:48 <+bridge> [ddnet] there are 3 21:48 <+bridge> [ddnet] seasons 21:48 <+bridge> [ddnet] 4 coming this year 21:48 <+bridge> [ddnet] ikr but only on in nazi lang 21:48 <+bridge> [ddnet] this rewatch ill watch it in english 21:48 <+bridge> [ddnet] so ill enjoy it lot more 21:48 <+bridge> [ddnet] are ther 3 season in catalan? 21:49 <+bridge> [ddnet] @ChillerDragon how come u miss 2nd and 2rd season 21:49 <+bridge> [ddnet] they are rly epic 21:49 <+bridge> [ddnet] nah i watched in spanish 21:49 <+bridge> [ddnet] y ppl told me 21:49 <+bridge> [ddnet] but after watching bohemian rhapsody full in english 21:49 <+bridge> [ddnet] i now want to watch this 21:49 <+bridge> [ddnet] in english too 21:49 <+bridge> [ddnet] i love rami malek 21:49 <+bridge> [ddnet] i dont understand a single sencte in english series or movies 21:49 <+bridge> [ddnet] lol 21:49 <+bridge> [ddnet] i do thanks to practice 21:49 <+bridge> [ddnet] its lot better to watch in original voice 21:50 <+bridge> [ddnet] the way the actor did it 21:50 <+bridge> [ddnet] its always best 21:50 <+bridge> [ddnet] i understand every word in all english yt videos i watch tho and all ppl at work 21:50 <+bridge> [ddnet] but idk movies try to use fancy words 24/7 21:51 <+bridge> [ddnet] deen spammin prs and nobody merges em 21:51 <+bridge> [ddnet] xd 21:51 <+bridge> [ddnet] http://puu.sh/DclXt/2cf7ccd298.png 21:51 <+bridge> [ddnet] he merges them later 21:51 <+bridge> [ddnet] all in a row 21:51 <+bridge> [ddnet] and then releases client version 21:51 <+bridge> [ddnet] xd 21:51 <+bridge> [ddnet] xd 21:51 <+bridge> [ddnet] ddnet 42.0 21:52 <+bridge> [ddnet] xd 21:52 <+bridge> [ddnet] or more liek 13.37 21:52 <+bridge> [ddnet] -Werror=null-dereference 21:52 <+bridge> [ddnet] haha 21:52 <+bridge> [ddnet] circleci found warnings 21:52 <+bridge> [ddnet] and it treats them as errors 21:53 <+bridge> [ddnet] code is full of null-dereference 21:53 <+bridge> [ddnet] xd 21:53 <+bridge> [ddnet] fault of MACRO_CONFIG_INT 21:53 <+bridge> [ddnet] https://circleci.com/gh/ddnet/ddnet/5166?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link 21:59 <+bridge> [ddnet] windows o.O 22:10 <+bridge> [ddnet] ok im rage now lemme create issue 22:38 <+bridge> [ddnet] @deen for me on windows 10 i have exact same framerate on the nightly and latest version and also feel no performance loose 22:39 <+bridge> [ddnet] ok 22:39 <+bridge> [ddnet] well, then that's probably not the "cmake is slower than bam" issue 22:41 <+bridge> [ddnet] wait is it a known fact that cmake build clients run slower than bam ones? 22:41 <+bridge> [ddnet] nope, but some people claim it 22:41 <+bridge> [ddnet] i claim that building in cmake takes ages and in bam its faster :p 22:41 <+bridge> [ddnet] most of the time is spent in g++, so the time should be the same 22:42 <+bridge> [ddnet] but ddnet has a lot more source code and weird header includes than vanilla 22:42 <+bridge> [ddnet] that bloats the compile time 22:42 <+bridge> [ddnet] ddnet++ whoich is very bloated ddnet9 build faster with bam than current ddnet with cmake 22:42 <+bridge> [ddnet] can you compare compiler flags? 22:43 <+bridge> [ddnet] and you can try using ninja with cmake instead of make 22:44 <+bridge> [ddnet] @ChillerDragon r u building with cmake on windows? also building is not done by cmake but by make 22:44 <+bridge> [ddnet] try putting -j4 8 or wathever to make it faster 22:44 <+bridge> [ddnet] on windows i build with cmake on debian i build with make 22:44 <+bridge> [ddnet] windows sucks cuz it analyzes files for antivirus and it can slow compilation, atleast its what i think 22:44 <+bridge> [ddnet] compiling on linux is way faster 22:44 <+bridge> [ddnet] i also used no -j flags for bam 22:44 <+bridge> [ddnet] u cant build with cmake 22:44 <+bridge> [ddnet] cmake doesnt build anything 22:45 <+bridge> [ddnet] idk i suck at bam and cmake confuig @deen but ddnet++ is open src u can look at it if u understand the differences 22:45 <+bridge> [ddnet] cmake > bam 22:45 <+bridge> [ddnet] https://github.com/DDNetPP/DDNetPP 22:45 <+bridge> [ddnet] it is bascially ddnet9 22:45 <+bridge> [ddnet] and sayiong compiling with cmake is slow i find it a bit ignorant xdd 22:45 <+bridge> [ddnet] why would cmake make a diference in perfomance it doesnt make any sense 22:45 <+bridge> [ddnet] i compiled on debian 8,9,10 ddnet and ddnet++ multiple times 22:46 <+bridge> [ddnet] im not talking about ddnet++ 22:46 <+bridge> [ddnet] ddnet++ is using bam 22:46 <+bridge> [ddnet] must be shit then 22:46 <+bridge> [ddnet] what? 22:46 <+bridge> [ddnet] i hate bam 22:46 <+bridge> [ddnet] its faster tho :p 22:46 <+bridge> [ddnet] no it isnt 22:46 <+bridge> [ddnet] what command do you use when compiling with cmake @ChillerDragon ? 22:47 <+bridge> [ddnet] Hopefully not `make` without `-jXX` 22:47 <+bridge> [ddnet] cmake .. 22:47 <+bridge> [ddnet] make # unix 22:47 <+bridge> [ddnet] cmake --build . # windows 22:47 <+bridge> [ddnet] make -j12 and it goes super fast 22:47 <+bridge> [ddnet] heh 22:47 <+bridge> [ddnet] Try -j with your number of threads 22:48 <+bridge> [ddnet] does bam takes all by default? 22:48 <+bridge> [ddnet] yes 22:48 <+bridge> [ddnet] yes 22:48 <+bridge> [ddnet] because i didnt provide it there as well 22:48 <+bridge> [ddnet] aaaaaaaaaaaah 22:48 <+bridge> [ddnet] thats why 22:48 <+bridge> [ddnet] bam uses make probasbly 22:48 <+bridge> [ddnet] no 22:48 <+bridge> [ddnet] so i guess bam not faster then just faster defaults 22:48 <+bridge> [ddnet] or maybe not 22:48 <+bridge> [ddnet] so theorically make with -j should be faste rright? 22:49 <+bridge> [ddnet] or bam also does threaded compiling 22:49 <+bridge> [ddnet] bam does threaded of course 22:49 <+bridge> [ddnet] bam does threaded compiling 22:49 <+bridge> [ddnet] and counts how many threads the OS reports 22:49 <+bridge> [ddnet] thats why bam with no flags is faster than cmake with no flags 22:49 <+bridge> [ddnet] $ bam -v 22:49 <+bridge> [ddnet] bam: detected 8 cores 22:49 <+bridge> [ddnet] showoff 22:49 <+bridge> [ddnet] xd 22:49 <+bridge> [ddnet] xd 22:50 <+bridge> [ddnet] 4 cores / 8 threads in truth, not that special 22:50 <+bridge> [ddnet] bam: detected 4 cores 22:50 <+bridge> [ddnet] :feelsbadman: 22:50 <+bridge> [ddnet] boi im troollin im ur fanboi num1 i know that u have potato hardware and haxxed the heck out of it 22:50 <+bridge> [ddnet] is a cpu thread diferent from a thread u open in c++ for example? 22:50 <+bridge> [ddnet] yes 22:51 <+bridge> [ddnet] C++ threads can be scheduled on CPU threads by the OS 22:51 <+bridge> [ddnet] thats the amount of thingys that shows up in htop i guess 22:51 <+bridge> [ddnet] rip onby 22:51 <+bridge> [ddnet] wanna hev one of my 12 hehe 22:52 <+bridge> [ddnet] and depending on hardware a CPU supports 1-8 threads to run in parallel, using some units while another thread is waiting for data from RAM to arrive 22:52 <+bridge> [ddnet] i got 4 cores and 4 threads xd 22:52 <+bridge> [ddnet] what CPU? 22:52 <+bridge> [ddnet] i5-4460 22:52 <+bridge> [ddnet] i gues its old already 22:53 <+bridge> [ddnet] i cant even have ddr4 ram 22:53 <+bridge> [ddnet] xD but it runs perfect 22:54 <+bridge> [ddnet] and updating my cpu means updating my motherboard and means also updating my ram 22:54 <+bridge> [ddnet] so its expensive .c 22:58 <+bridge> [ddnet] imo someone with laggs could just take a bit of time and look into profiling cpu usage, then it would be much easier to see if laggs come from some cpu side effects. 22:59 <+bridge> [ddnet] u expect to much for the players 22:59 <+bridge> [ddnet] :monkaS: 22:59 <+bridge> [ddnet] from 23:03 <+bridge> [ddnet] that's not realistic xd 23:50 <+bridge> [ddnet] @ChillerDragon if your make takes longer than bam then maybe disable client compiling, it is auto enabled by default 23:58 <+bridge> [ddnet] Maybe someone remembers that I had problems setting the inputs of my server side bots. I found the issue, how can this affect it? 23:58 <+bridge> [ddnet] https://github.com/fokkonaut/BlockDDrace/commit/cc057dfaa1c7091a566e4639a1e8a5f8406b15eb