Page 1 of 1

Lower ping on DDNET client than in other clients?

Posted: Tue Jun 09, 2015 4:33 am
by 'Murica
Hi everyone,

I've been looking at the DDNetwork client for the last few days, and the most important thing I've been noticing is a significant reduction in ping over other clients. Using gamer client on a server, it comes out with 75-80 ping, whereas using DDnet results in 60-65 ish. Is there anything in the source code that would cause that? I've been trying to optimize the other client to get the lower ping DDnet offers, but I haven't been able to achieve anything yet... Suggestions?

Re: Lower ping on DDNET client than in other clients?

Posted: Tue Jun 09, 2015 7:09 am
by Ryozuki
I think it depends on server, not in client but maybe

Re: Lower ping on DDNET client than in other clients?

Posted: Tue Jun 09, 2015 7:17 am
by Lady Saavik
I think deen made something looong time ago, you have to wait for him, he's gone this week.

Re: Lower ping on DDNET client than in other clients?

Posted: Tue Jun 09, 2015 10:12 pm
by kamillentee
I think that's a completely wrong guess. Anyway. Web sockets?

Re: Lower ping on DDNET client than in other clients?

Posted: Wed Jun 10, 2015 4:01 pm
by 'Murica
Network.cpp is the first file I replaced, so it can't be that...

Re: Lower ping on DDNET client than in other clients?

Posted: Sun Jun 14, 2015 2:12 pm
by deen
Yes, I made some changes to improve ping in client and as well as server. gfx_threaded and gfx_asyncrender are on by default in DDNet client, but off in other clients. Also using net_socket_read_wait instead of simple waits in the client and server (also used to decrease CPU usage). There were probably more things that I forgot already. You could read through the git logs if you really want to find them: https://github.com/def-/ddnet/commits/DDRace64