From fcdc8656415421676a7db44982226fd4916196c8 Mon Sep 17 00:00:00 2001 From: OV2 Date: Thu, 9 Mar 2023 16:09:54 +0100 Subject: [PATCH] win3: use precalculated values --- win32/win32_display.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32/win32_display.cpp b/win32/win32_display.cpp index 2b92eb07..673bc6f5 100644 --- a/win32/win32_display.cpp +++ b/win32/win32_display.cpp @@ -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;