Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fpsgame/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/fpsgame/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down