00:23 <+bridge> [ddnet] yup, Rufus best 05:56 <+bridge> [ddnet] why is CNetConnection::Update() so unoptimized for something thats called so often 11:20 <+bridge> [ddnet] lemme quickly write it in asm and create an pr lul 11:21 <+bridge> [ddnet] im good in optimizations o.O 11:21 <+bridge> [ddnet] ddnet++ chracter tick function has over 15k lines 11:21 <+bridge> [ddnet] xd 11:30 <+bridge> [ddnet] i made some simple optimizations and the function runs 2x faster :thonkery: 12:20 <+bridge> [ddnet] pr it :D 12:25 <+bridge> [ddnet] 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 12:26 <+bridge> [ddnet] idk if its worth a pr when some optimizing compilers probably do this already 12:30 <+bridge> [ddnet] you sure that optimizes it? maybe compiler already does it 12:31 <+bridge> [ddnet] did you profile it? or u just said 2x faster randomly? xD 12:34 <+bridge> [ddnet] i used gprof 12:35 <+bridge> [ddnet] and divided self time for that function by number of calls for before and after 12:35 <+bridge> [ddnet] before was ~0.08 us/call and after was ~0.04 14:07 <+bridge> [ddnet] @onby yes, please make a PR 15:21 <+bridge> [ddnet] @noby you should code more for ddnet:feelsamazingman: 15:54 <+bridge> [ddnet] @heinrich5991 rendered thumbnail for this map doesn't look right 15:54 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/463341702069878787/Nore.map 15:54 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/364164149359411201/463341283927392266/Nore.png 15:58 <+bridge> [ddnet] doesn't look at all xD 15:59 <+bridge> [ddnet] xD 15:59 <+bridge> [ddnet] 15:59 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/463342864680615946/unknown.png 15:59 <+bridge> [ddnet] I spotted these 15:59 <+bridge> [ddnet] top left 16:38 <+bridge> [ddnet] ok 16:41 < ddnet-commits> [ddnet] nobody-mb opened pull request #1183: Update network_conn.cpp (master...patch-1) https://git.io/fyJ8U 16:52 <+bridge> [ddnet] and the compiler doesnt optimizes that? i'm very sceptical xd 16:54 <+bridge> [ddnet] ud think it would 16:54 <+bridge> [ddnet] and maybe some compilers do 16:55 <+bridge> [ddnet] but i tested with default config and gcc and it made it faster 16:55 <+bridge> [ddnet] that said i doubt it has any impact on the game at all 16:55 <+bridge> [ddnet] well any optimization is a win tho 19:51 <+bridge> [ddnet] meh, code readability is super important 23:04 <+bridge> [ddnet] @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 23:26 <+bridge> [ddnet] <|UroboroS| Rockus.~> do you know anything about webscraping with python? 23:59 <+bridge> [ddnet] http://puu.sh/APRW2/56cf9840e8.png 23:59 <+bridge> [ddnet] s little bit @|UroboroS| Rockus.~ 23:59 <+bridge> [ddnet] @jao can i create the issue? i need something for my france vacation in 2 weeks