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:
Adam Olsen 2001-09-08 16:48:40 +00:00
parent b788eb6dbd
commit de83dfb587
1 changed files with 2 additions and 2 deletions

View File

@ -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;