1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Move infocus and network updates to fixedloop()

Updating them every delta frame is way too fast.
This commit is contained in:
Misa 2020-06-14 11:58:27 -07:00 committed by Ethan Lee
parent acf47bfeac
commit 867e7bc1e6

View file

@ -361,11 +361,6 @@ void gameloop()
void deltaloop()
{
game.infocus = key.isActive;
// Update network per frame.
NETWORK_update();
//timestep limit to 30
const float rawdeltatime = static_cast<float>(time_ - timePrev);
accumulator += rawdeltatime;
@ -432,6 +427,11 @@ void deltaloop()
void fixedloop()
{
game.infocus = key.isActive;
// Update network per frame.
NETWORK_update();
key.Poll();
if(key.toggleFullscreen)
{