diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-06-26 00:56:29 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-26 00:56:29 +0200 |
commit | 3092b9a46e5d23c8eccef8fc5a96aab943952e5e (patch) | |
tree | 862ea81a78aa900adba866be661d5d217500516e /src | |
parent | Pool fixes (diff) | |
download | re3-3092b9a46e5d23c8eccef8fc5a96aab943952e5e.tar re3-3092b9a46e5d23c8eccef8fc5a96aab943952e5e.tar.gz re3-3092b9a46e5d23c8eccef8fc5a96aab943952e5e.tar.bz2 re3-3092b9a46e5d23c8eccef8fc5a96aab943952e5e.tar.lz re3-3092b9a46e5d23c8eccef8fc5a96aab943952e5e.tar.xz re3-3092b9a46e5d23c8eccef8fc5a96aab943952e5e.tar.zst re3-3092b9a46e5d23c8eccef8fc5a96aab943952e5e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Timer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/Timer.cpp b/src/core/Timer.cpp index cf060127..e4f5b01e 100644 --- a/src/core/Timer.cpp +++ b/src/core/Timer.cpp @@ -105,7 +105,7 @@ void CTimer::Update(void) _oldPerfCounter = pc; // bugfix from VC - float updInCyclesScaled = GetIsPaused() ? updInCycles : updInCycles * ms_fTimeScale; + double updInCyclesScaled = GetIsPaused() ? updInCycles : updInCycles * ms_fTimeScale; frameTime = updInCyclesScaled / (double)_nCyclesPerMS; @@ -117,8 +117,9 @@ void CTimer::Update(void) RsTimerType timer = RsTimer(); RsTimerType updInMs = timer - oldPcTimer; - - frameTime = (double)updInMs * ms_fTimeScale; + + // bugfix from VC + frameTime = GetIsPaused() ? (double)updInMs : (double)updInMs * ms_fTimeScale; oldPcTimer = timer; |