win3: use precalculated values

This commit is contained in:
OV2 2023-03-09 16:09:54 +01:00
parent 0b0607722c
commit fcdc865641
1 changed files with 2 additions and 2 deletions

View File

@ -688,9 +688,9 @@ void WinThrottleFramerate()
}
if (Settings.PAL)
PCFrameTime = PCBase / PAL_PROGRESSIVE_FRAME_RATE;
PCFrameTime = PCFrameTimePAL;
else
PCFrameTime = PCBase / NTSC_PROGRESSIVE_FRAME_RATE;
PCFrameTime = PCFrameTimeNTSC;
QueryPerformanceCounter((LARGE_INTEGER *)&PCEnd);
int64_t time_left_us = ((PCFrameTime - (PCEnd - PCStart)) * 1000000) / PCBase;