mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-22 17:19:15 +01:00
Small timer fix
This commit is contained in:
parent
9b5caa190e
commit
3092b9a46e
@ -105,7 +105,7 @@ void CTimer::Update(void)
|
|||||||
_oldPerfCounter = pc;
|
_oldPerfCounter = pc;
|
||||||
|
|
||||||
// bugfix from VC
|
// bugfix from VC
|
||||||
float updInCyclesScaled = GetIsPaused() ? updInCycles : updInCycles * ms_fTimeScale;
|
double updInCyclesScaled = GetIsPaused() ? updInCycles : updInCycles * ms_fTimeScale;
|
||||||
|
|
||||||
frameTime = updInCyclesScaled / (double)_nCyclesPerMS;
|
frameTime = updInCyclesScaled / (double)_nCyclesPerMS;
|
||||||
|
|
||||||
@ -117,8 +117,9 @@ void CTimer::Update(void)
|
|||||||
RsTimerType timer = RsTimer();
|
RsTimerType timer = RsTimer();
|
||||||
|
|
||||||
RsTimerType updInMs = timer - oldPcTimer;
|
RsTimerType updInMs = timer - oldPcTimer;
|
||||||
|
|
||||||
frameTime = (double)updInMs * ms_fTimeScale;
|
// bugfix from VC
|
||||||
|
frameTime = GetIsPaused() ? (double)updInMs : (double)updInMs * ms_fTimeScale;
|
||||||
|
|
||||||
oldPcTimer = timer;
|
oldPcTimer = timer;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user