diff --git a/src/fpsgame/client.cpp b/src/fpsgame/client.cpp index 3ef0dc3..c179699 100644 --- a/src/fpsgame/client.cpp +++ b/src/fpsgame/client.cpp @@ -1107,7 +1107,7 @@ namespace game void c2sinfo(bool force) // send update to the server { static int lastupdate = -1000; - if(totalmillis - lastupdate < 33 && !force) return; // don't update faster than 30fps + if(totalmillis - lastupdate < 15 && !force) return; // don't update faster than ~66.67fps lastupdate = totalmillis; sendpositions(); sendmessages(); diff --git a/src/fpsgame/server.cpp b/src/fpsgame/server.cpp index cd3593b..fee2e4d 100644 --- a/src/fpsgame/server.cpp +++ b/src/fpsgame/server.cpp @@ -1768,9 +1768,9 @@ namespace server { if(clients.empty() || (!hasnonlocalclients() && !demorecord)) return false; enet_uint32 curtime = enet_time_get()-lastsend; - if(curtime<33 && !force) return false; + if(curtime<15 && !force) return false; bool flush = buildworldstate(); - lastsend += curtime - (curtime%33); + lastsend += curtime - (curtime%15); return flush; }