mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
Clamp nextPageDelay in G_FPSLimit() to 0.0 - g_frameDelay
git-svn-id: https://svn.eduke32.com/eduke32@8148 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
53248945e8
commit
a649130327
1 changed files with 2 additions and 0 deletions
|
@ -6315,6 +6315,8 @@ int G_FPSLimit(void)
|
|||
static double nextPageDelay;
|
||||
static uint64_t lastFrameTicks;
|
||||
|
||||
nextPageDelay = clamp(nextPageDelay, 0.0, g_frameDelay);
|
||||
|
||||
uint64_t const frameTicks = timerGetTicksU64();
|
||||
uint64_t const elapsedTime = frameTicks - lastFrameTicks;
|
||||
double const dElapsedTime = elapsedTime;
|
||||
|
|
Loading…
Reference in a new issue