- Unify stat fps for all games.

This commit is contained in:
Mitchell Richters 2020-08-28 17:07:36 +10:00 committed by Christoph Oelckers
parent 59a964bb83
commit e32cd81cc7
16 changed files with 86 additions and 196 deletions

View file

@ -927,6 +927,12 @@ static void updatePauseStatus()
paused ? S_PauseSound(!pausedWithKey, !paused) : S_ResumeSound(paused);
}
static void checkTimerActive()
{
FStat *stat = FStat::FindStat("fps");
glcycle_t::active = (stat != NULL && stat->isActive());
}
void app_loop()
{
@ -944,6 +950,7 @@ void app_loop()
handleevents();
updatePauseStatus();
D_ProcessEvents();
checkTimerActive();
gi->RunGameFrame();