mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
Change the networking timeout down from 1 second to 0.01 seconds.
The CPU usage will seem higher with only 1 or 2 people connected, but that's only when they have low framerates. It should be the same when there's enough incoming network data to keep it from waiting a long time anyway.
This commit is contained in:
parent
b788eb6dbd
commit
de83dfb587
1 changed files with 2 additions and 2 deletions
|
@ -164,8 +164,8 @@ main (int argc, const char *argv[])
|
|||
FD_SET (0, &fdset);
|
||||
FD_SET (net_socket, &fdset);
|
||||
|
||||
_timeout.tv_sec = 1;
|
||||
_timeout.tv_usec = 0;
|
||||
_timeout.tv_sec = 0;
|
||||
_timeout.tv_usec = 10000;
|
||||
if (svs.num_clients || !sys_dead_sleep->int_val)
|
||||
timeout = &_timeout;
|
||||
|
||||
|
|
Loading…
Reference in a new issue