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 2018-07-02 00:00:00Z and 2018-07-03 00:00:00Z
Avatar
why is CNetConnection::Update() so unoptimized for something thats called so often
Avatar
ChillerDragon 2018-07-02 09:20:24Z
lemme quickly write it in asm and create an pr lul
09:21
im good in optimizations o.O ddnet++ chracter tick function has over 15k lines
09:21
xd
Avatar
i made some simple optimizations and the function runs 2x faster thonkery
Avatar
pr it :D
Avatar
i just changed it so it doesnt keep calling the same functions/doing the same arithmetic operations multiple times in the same function where everytime is the same result
10:26
idk if its worth a pr when some optimizing compilers probably do this already
Avatar
you sure that optimizes it? maybe compiler already does it
10:31
did you profile it? or u just said 2x faster randomly? xD
Avatar
i used gprof
10:35
and divided self time for that function by number of calls for before and after
10:35
before was ~0.08 us/call and after was ~0.04
Avatar
@noby yes, please make a PR
Avatar
@noby you should code more for ddnetfeelsamazingman
Avatar
@heinrich5991 rendered thumbnail for this map doesn't look right
630.95 KB
13:54
Avatar
doesn't look at all xD
13:59
13:59
I spotted these
13:59
top left
Avatar
and the compiler doesnt optimizes that? i'm very sceptical xd
Avatar
ud think it would
14:54
and maybe some compilers do
14:55
but i tested with default config and gcc and it made it faster
14:55
that said i doubt it has any impact on the game at all
Avatar
well any optimization is a win tho
Avatar
meh, code readability is super important
❤ 1
Avatar
@jao it'd be great if you could create an issue at https://github.com/heinrich5991/libtw2/issues/new, otherwise I'm bound to forget
Avatar
do you know anything about webscraping with python?
Avatar
ChillerDragon 2018-07-02 21:59:26Z
s little bit @Rockus
21:59
@jao can i create the issue? i need something for my france vacation in 2 weeks
Avatar
does someone know how to use beautiful soup
Avatar
in 2 weeks lol
22:10
too late I guess
22:10
I'll do it later
Avatar
ChillerDragon 2018-07-02 22:15:34Z
.-.
22:15
i have to collect some stuff for vacation @jao
Avatar
come up with own stuff? 😄
Avatar
ChillerDragon 2018-07-02 22:16:37Z
meh
22:16
i dont have unlimited own stuff
Avatar
@heinrich5991
23:36
wowo
23:36
how dare you
Avatar
ChillerDragon 2018-07-02 23:58:00Z
github?
23:58
feel y
23:58
i also got some github accs flagged lul
23:58
or is it ddnet forum?
23:58
looks liek github
23:58
oh u were the 420 issue guy? xd
Exported 55 message(s)