Commit 9f44ddb1 authored by Richard Gobeille's avatar Richard Gobeille

Duke3d: only allow doubled up game updates if we're behind at least 2 tics

parent fc43c041
...@@ -6965,7 +6965,7 @@ MAIN_LOOP_RESTART: ...@@ -6965,7 +6965,7 @@ MAIN_LOOP_RESTART:
G_DoMoveThings(); G_DoMoveThings();
} }
} }
while (((g_netClient || g_netServer) || (myplayer.gm & (MODE_MENU | MODE_DEMO)) == 0) && (int)(totalclock - ototalclock) >= TICSPERFRAME); while (((g_netClient || g_netServer) || (myplayer.gm & (MODE_MENU | MODE_DEMO)) == 0) && (int)(totalclock - ototalclock) >= (TICSPERFRAME<<1));
gameUpdate = true; gameUpdate = true;
g_gameUpdateTime = timerGetHiTicks() - gameUpdateStartTime; g_gameUpdateTime = timerGetHiTicks() - gameUpdateStartTime;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment