Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2019-04-09 00:00:00Z and 2019-04-10 00:00:00Z
Avatar
19c64e7 M Sleepy, M Adragaline 2, M TowerOfDesperation - ddnet-maps
Avatar
e9f8bd4 Add emacs style ctrl-a ctrl-e navigation - ChillerDragon 0b18d6e Remove if nesting for compose keys in console - ChillerDragon d4d6ab6 Merge #1593 - bors[bot]
Avatar
Logging expensive queries is super useful
12:45
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;
12:46
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;
12:47
for another one added an index and it went from 200 s to 0.00 s
12:52
200s?
12:52
what query was that
12:52
xD
12:54
because we had no index on server name and there are no recent OLD server finishes, so this kept taking longer and long
12:54
er
12:59
The query above is wrong though, can't optimize it that easily 😄
Avatar
ChillerDragon 2019-04-09 16:32:01Z
wdym by logging? where do you log them to?
Avatar
to a file on the disk
Avatar
ChillerDragon 2019-04-09 17:13:06Z
ah
17:13
only for website not for tw srv i guess
Avatar
ChillerDragon 2019-04-09 19:21:17Z
should be possible to sync envelopes with map sounds right? anyone expierenc ewith this?
Avatar
ChillerDragon 2019-04-09 19:28:43Z
i have a 15 sec andimation and a 15 sec opus file but they are totally off directly on server start after 3 secs
Avatar
ChillerDragon 2019-04-09 19:37:33Z
seems like my 15 seconds animations is alread starting a new loop after 12 secs server time
19:37
?? dfq
19:40
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
Avatar
ChillerDragon 2019-04-09 19:45:14Z
commit name "harmless gcc warnings" actual changes sneaky not rendering ghost page anymore o.O
19:46
maybe the warning
19:46
told him about it
19:46
might be duplicated
Avatar
ChillerDragon 2019-04-09 19:46:22Z
hm
19:46
but still xd
Avatar
OUR_FLAGS_OWN
19:46
our
19:46
own
19:46
xd
19:46
our_own_mine_flags
Avatar
ChillerDragon 2019-04-09 19:47:00Z
xd
19:47
yo ryo fix mapsound envelope sync!
Avatar
idk never touched that
19:47
im rewatching mr robot rn
Avatar
ChillerDragon 2019-04-09 19:47:28Z
idk either
19:47
i dont get envelopes code
Avatar
ChillerDragon 2019-04-09 19:47:40Z
which episode r u?
Avatar
im downloading "legally" it rn
Avatar
ChillerDragon 2019-04-09 19:48:00Z
so u didnt start yet
Avatar
but i alreayd seen the serie
19:48
2 times
19:48
its my 3rd
Avatar
ChillerDragon 2019-04-09 19:48:05Z
lol
Avatar
i just like it too much
Avatar
ChillerDragon 2019-04-09 19:48:18Z
watches first season 1.5 times
19:48
watched*
19:48
there are 3
19:48
seasons
19:48
4 coming this year
Avatar
ChillerDragon 2019-04-09 19:48:35Z
ikr but only on in nazi lang
Avatar
-fstack-protector-all and FORTIFY_SOURCE Just an attempt to see what performance impact it has
Avatar
this rewatch ill watch it in english
19:48
so ill enjoy it lot more
Avatar
ChillerDragon 2019-04-09 19:48:57Z
are ther 3 season in catalan?
Avatar
@ChillerDragon how come u miss 2nd and 2rd season
19:49
they are rly epic
19:49
nah i watched in spanish
Avatar
ChillerDragon 2019-04-09 19:49:12Z
y ppl told me
Avatar
but after watching bohemian rhapsody full in english
19:49
i now want to watch this
19:49
in english too
19:49
i love rami malek
Avatar
ChillerDragon 2019-04-09 19:49:38Z
i dont understand a single sencte in english series or movies
19:49
i do thanks to practice
19:49
its lot better to watch in original voice
19:50
the way the actor did it
19:50
its always best
Avatar
ChillerDragon 2019-04-09 19:50:07Z
i understand every word in all english yt videos i watch tho and all ppl at work
19:50
but idk movies try to use fancy words 24/7
19:51
deen spammin prs and nobody merges em
19:51
xd
19:51
Avatar
he merges them later
19:51
all in a row
19:51
and then releases client version
19:51
xd
Avatar
ChillerDragon 2019-04-09 19:51:48Z
xd
19:51
ddnet 42.0
Avatar
ChillerDragon 2019-04-09 19:52:11Z
or more liek 13.37
Avatar
-Werror=null-dereference
19:52
haha
19:52
circleci found warnings
19:52
and it treats them as errors
19:53
code is full of null-dereference
19:53
xd
19:53
fault of MACRO_CONFIG_INT
19:53
Hosted Continuous Integration for web applications. Set up your application for testing in one click, on the fastest testing platform on the internet.
Avatar
ChillerDragon 2019-04-09 19:59:12Z
windows o.O
Avatar
ChillerDragon 2019-04-09 20:10:57Z
ok im rage now lemme create issue
Avatar
From what i understood while testing it seems impossible to sync mapsounds with envelopes. I used same length for both but envelopes seem to have a random offset when starting unsynced. Any ideas? Maybe i didn't get something there.
Avatar
ChillerDragon 2019-04-09 20:38:28Z
@deen for me on windows 10 i have exact same framerate on the nightly and latest version and also feel no performance loose
20:39
well, then that's probably not the "cmake is slower than bam" issue
Avatar
ChillerDragon 2019-04-09 20:41:07Z
wait is it a known fact that cmake build clients run slower than bam ones?
Avatar
nope, but some people claim it
Avatar
ChillerDragon 2019-04-09 20:41:31Z
i claim that building in cmake takes ages and in bam its faster :p
Avatar
most of the time is spent in g++, so the time should be the same
20:42
but ddnet has a lot more source code and weird header includes than vanilla
20:42
that bloats the compile time
Avatar
ChillerDragon 2019-04-09 20:42:41Z
ddnet++ whoich is very bloated ddnet9 build faster with bam than current ddnet with cmake
Avatar
can you compare compiler flags?
20:43
and you can try using ninja with cmake instead of make
Avatar
@ChillerDragon r u building with cmake on windows? also building is not done by cmake but by make
20:44
try putting -j4 8 or wathever to make it faster
Avatar
ChillerDragon 2019-04-09 20:44:27Z
on windows i build with cmake on debian i build with make
Avatar
windows sucks cuz it analyzes files for antivirus and it can slow compilation, atleast its what i think
20:44
compiling on linux is way faster
Avatar
ChillerDragon 2019-04-09 20:44:46Z
i also used no -j flags for bam
Avatar
u cant build with cmake
20:44
cmake doesnt build anything
Avatar
ChillerDragon 2019-04-09 20:45:12Z
idk i suck at bam and cmake confuig @deen but ddnet++ is open src u can look at it if u understand the differences
Avatar
cmake > bam
Avatar
ChillerDragon 2019-04-09 20:45:23Z
Based on DDraceNetwork by deen & contributors (www.ddnet.tw) which is based on the great game teeworlds (www.teeworlds.com). - DDNetPP/DDNetPP
20:45
it is bascially ddnet9
Avatar
and sayiong compiling with cmake is slow i find it a bit ignorant xdd
20:45
why would cmake make a diference in perfomance it doesnt make any sense
Avatar
ChillerDragon 2019-04-09 20:45:55Z
i compiled on debian 8,9,10 ddnet and ddnet++ multiple times
Avatar
im not talking about ddnet++
Avatar
ChillerDragon 2019-04-09 20:46:18Z
ddnet++ is using bam
Avatar
must be shit then
Avatar
ChillerDragon 2019-04-09 20:46:29Z
what?
Avatar
i hate bam
Avatar
ChillerDragon 2019-04-09 20:46:40Z
its faster tho :p
Avatar
no it isnt
Avatar
what command do you use when compiling with cmake @ChillerDragon ?
20:47
Hopefully not make without -jXX
Avatar
ChillerDragon 2019-04-09 20:47:36Z
cmake .. make # unix cmake --build . # windows
Avatar
make -j12 and it goes super fast
20:47
Try -j with your number of threads
Avatar
ChillerDragon 2019-04-09 20:48:14Z
does bam takes all by default?
Avatar
ChillerDragon 2019-04-09 20:48:22Z
because i didnt provide it there as well
20:48
aaaaaaaaaaaah
20:48
thats why
Avatar
bam uses make probasbly
Avatar
ChillerDragon 2019-04-09 20:48:36Z
so i guess bam not faster then just faster defaults
Avatar
or maybe not
20:48
so theorically make with -j should be faste rright?
20:49
or bam also does threaded compiling
Avatar
bam does threaded of course
Avatar
ChillerDragon 2019-04-09 20:49:19Z
bam does threaded compiling
Avatar
and counts how many threads the OS reports
Avatar
ChillerDragon 2019-04-09 20:49:28Z
thats why bam with no flags is faster than cmake with no flags
Avatar
$ bam -v bam: detected 8 cores
Avatar
ChillerDragon 2019-04-09 20:49:50Z
showoff
20:49
xd
Avatar
4 cores / 8 threads in truth, not that special
Avatar
bam: detected 4 cores feelsbadman
Avatar
ChillerDragon 2019-04-09 20:50:32Z
boi im troollin im ur fanboi num1 i know that u have potato hardware and haxxed the heck out of it
Avatar
is a cpu thread diferent from a thread u open in c++ for example?
20:51
C++ threads can be scheduled on CPU threads by the OS
Avatar
ChillerDragon 2019-04-09 20:51:13Z
thats the amount of thingys that shows up in htop i guess
20:51
rip onby
20:51
wanna hev one of my 12 hehe
Avatar
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
Avatar
i got 4 cores and 4 threads xd
Avatar
what CPU?
Avatar
i5-4460
20:52
i gues its old already
20:53
i cant even have ddr4 ram
20:53
xD but it runs perfect
20:54
and updating my cpu means updating my motherboard and means also updating my ram
20:54
so its expensive .c
Avatar
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.
Avatar
u expect to much for the players
20:59
from
Avatar
that's not realistic xd
Avatar
@ChillerDragon if your make takes longer than bam then maybe disable client compiling, it is auto enabled by default
Avatar
Maybe someone remembers that I had problems setting the inputs of my server side bots. I found the issue, how can this affect it? https://github.com/fokkonaut/BlockDDrace/commit/cc057dfaa1c7091a566e4639a1e8a5f8406b15eb
Avatar
11162f8 Clear up instructions on using make - def- 85503c3 Add -GNinja mention in README - def- f84f966 Merge #1611 - bors[bot]
Avatar
527859e Fix home/end keys in console - def- ea093f6 2 more tries to force DB to respond in UTF8 (fixes #1599) - def- 173b43d Fix memory leak in draggers - def- 708019c Grammar fix: Catched -> Caught - def- c3e36ee Always initialize m_InfosLoaded - def- 0e7a514 Fix C90 compatibility on Windows - def- fe432b8 Enable a few more GCC warnings - def- b05b268 Merge #1598 #1601 #1605 #1606 #1607 #1609 - bors[bot]
Avatar
Rafael Fontenelle 2019-04-09 22:48:54Z
Is it currently possible to run check when using ninja to build ?
Avatar
@Rafael Fontenelle yes. ninja run_tests
Avatar
Rafael Fontenelle 2019-04-09 23:41:02Z
Yey. -1.5 min when building with ninja. Nice.
23:41
Will change in AUR ddnet package.
Exported 201 message(s)