- flush the network timer righr after loading and before starting a level.

Without this the entire load time may get registered as skipped frames-
This commit is contained in:
Christoph Oelckers 2021-11-07 22:51:02 +01:00
parent 0da2250efe
commit 5d0c9a9fc8

View file

@ -150,6 +150,7 @@ void NewGame(MapRecord* map, int skill, bool ns = false)
ShowIntermission(nullptr, map, nullptr, [=](bool) {
gi->NewGame(map, skill, ns);
ResetStatusBar();
Net_ClearFifo();
});
}
@ -200,6 +201,7 @@ static void GameTicker()
gameaction = ga_level;
gi->NextLevel(g_nextmap, g_nextskill);
ResetStatusBar();
Net_ClearFifo();
}
else
{
@ -213,6 +215,7 @@ static void GameTicker()
gameaction = ga_level;
gi->NextLevel(g_nextmap, g_nextskill);
ResetStatusBar();
Net_ClearFifo();
break;
case ga_newgame: