Sleep 850 microseconds between dedicated server frames.

The dedicated server runs at cl_maxfps frames per second. Een with very
large values one server frame can never be shorter than 1 milliseconds.
And the timing doesn't need to be very precise since the network
latency adds a lot of more jitter.
This commit is contained in:
Yamagi Burmeister 2017-09-07 14:53:00 +02:00
parent 950e581103
commit 5fa6fa9175

View file

@ -41,7 +41,13 @@ main(int argc, char **argv)
int verLen, i;
long long oldtime, newtime;
const char* versionString;
// Time slept each frame.
#ifndef DEDICATED_ONLY
struct timespec t = {0, 5000};
#else
struct timespec t = {0, 850000};
#endif
/* register signal handler */
registerHandler();