mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 00:41:24 +00:00
- Unify stat fps
for all games.
This commit is contained in:
parent
59a964bb83
commit
e32cd81cc7
16 changed files with 86 additions and 196 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue