shithub: choc

Download patch

ref: 660cad3966afdcd745a3468e23416e48aee88c28
parent: b32512697498726fbfa7a6790c1015eac8d77f4f
author: Simon Howard <[email protected]>
date: Wed Jan 30 14:08:36 EST 2019

net: Increase run frequency for dedicated server.

This should really be changed to block until new packets are
received, but until then, this is at least an improvement. 10ms is
too coarsely-grained considering how critical the latency is to the
game.

--- a/src/net_dedicated.c
+++ b/src/net_dedicated.c
@@ -73,7 +73,8 @@
     while (true)
     {
         NET_SV_Run();
-        I_Sleep(10);
+        // TODO: Block on socket instead of polling.
+        I_Sleep(1);
     }
 }