mirror of https://github.com/snes9xgit/snes9x.git
win3: use precalculated values
This commit is contained in:
parent
0b0607722c
commit
fcdc865641
|
@ -688,9 +688,9 @@ void WinThrottleFramerate()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Settings.PAL)
|
if (Settings.PAL)
|
||||||
PCFrameTime = PCBase / PAL_PROGRESSIVE_FRAME_RATE;
|
PCFrameTime = PCFrameTimePAL;
|
||||||
else
|
else
|
||||||
PCFrameTime = PCBase / NTSC_PROGRESSIVE_FRAME_RATE;
|
PCFrameTime = PCFrameTimeNTSC;
|
||||||
|
|
||||||
QueryPerformanceCounter((LARGE_INTEGER *)&PCEnd);
|
QueryPerformanceCounter((LARGE_INTEGER *)&PCEnd);
|
||||||
int64_t time_left_us = ((PCFrameTime - (PCEnd - PCStart)) * 1000000) / PCBase;
|
int64_t time_left_us = ((PCFrameTime - (PCEnd - PCStart)) * 1000000) / PCBase;
|
||||||
|
|
Loading…
Reference in New Issue