From ff791b1d3cb06c7bac729e94d75a505fc55bac5f Mon Sep 17 00:00:00 2001 From: Elisha Riedlinger Date: Wed, 6 Sep 2023 21:34:20 -0700 Subject: [PATCH] Fix last check-in --- d3d9/IDirect3DDevice9Ex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d3d9/IDirect3DDevice9Ex.cpp b/d3d9/IDirect3DDevice9Ex.cpp index 7591141f..f680531f 100644 --- a/d3d9/IDirect3DDevice9Ex.cpp +++ b/d3d9/IDirect3DDevice9Ex.cpp @@ -2333,7 +2333,7 @@ void m_IDirect3DDevice9Ex::LimitFrameRate() bool DoLoop; do { QueryPerformanceCounter(&Counter.ClickTime); - float DeltaPresentMS = ((Counter.ClickTime.QuadPart - Counter.LastPresentTime.QuadPart) * 10000.0f) / Counter.Frequency.QuadPart; + float DeltaPresentMS = ((Counter.ClickTime.QuadPart - Counter.LastPresentTime.QuadPart) * 1000.0f) / Counter.Frequency.QuadPart; DoLoop = false; if (Counter.FrequencyFlag && DeltaPresentMS < DelayTimeMS)