From 81ccefb74d25f68e31e0c47701809c8ccba04054 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 25 Dec 2023 22:36:35 +0100 Subject: [PATCH] NVIDIA: limit to 1 sleep per frame The purpose of this bool was to only limit nv sleep to 1 per frame, but the bool was never reset. --- r5dev/engine/sys_dll2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/r5dev/engine/sys_dll2.cpp b/r5dev/engine/sys_dll2.cpp index 1911b1f7..16d53421 100644 --- a/r5dev/engine/sys_dll2.cpp +++ b/r5dev/engine/sys_dll2.cpp @@ -247,6 +247,7 @@ bool CEngineAPI::MainLoop() #ifndef DEDICATED if (bRunLowLatency) { CEngineAPI::RunLowLatencyFrame(); + bRunLowLatency = false; } CEngineAPI::PumpMessages(); #endif // !DEDICATED