Skip to content

Commit 660cad3

Browse files
committed
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.
1 parent b325126 commit 660cad3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/net_dedicated.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ void NET_DedicatedServer(void)
7373
while (true)
7474
{
7575
NET_SV_Run();
76-
I_Sleep(10);
76+
// TODO: Block on socket instead of polling.
77+
I_Sleep(1);
7778
}
7879
}
7980

0 commit comments

Comments
 (0)