diff --git a/src/game/client.cpp b/src/game/client.cpp index 3520640f1..ebf9ded9c 100644 --- a/src/game/client.cpp +++ b/src/game/client.cpp @@ -2215,7 +2215,7 @@ namespace client void c2sinfo(bool force) // send update to the server { static int lastupdate = -1000; - if(totalmillis-lastupdate < 40 && !force) return; // don't update faster than 25fps + if(totalmillis-lastupdate < 8 && !force) return; // don't update faster than 125 FPS lastupdate = totalmillis ? totalmillis : 1; sendpositions(); sendmessages(); diff --git a/src/game/server.cpp b/src/game/server.cpp index 761eecc68..5f0b205d3 100644 --- a/src/game/server.cpp +++ b/src/game/server.cpp @@ -5932,7 +5932,8 @@ namespace server { if(clients.empty() || (!hasnonlocalclients() && !demorecord)) return false; enet_uint32 millis = enet_time_get()-lastsend; - if(millis < 40 && !force) return false; + // Update at 125 Hz. Higher update rates result in lower effective latency. + if(millis < 8 && !force) return false; bool flush = buildworldstate(); lastsend += millis - (millis%40); return flush;