From 40bc86afebbfae1bed4b12c1bdd3305b5bdb22ed Mon Sep 17 00:00:00 2001 From: FakeMichau <49685661+FakeMichau@users.noreply.github.com> Date: Mon, 26 May 2025 21:00:47 +0200 Subject: [PATCH] Add fallback FPS Limit to Vulkan --- OptiScaler/hooks/HooksVk.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OptiScaler/hooks/HooksVk.cpp b/OptiScaler/hooks/HooksVk.cpp index 51c701bd..bc524bdd 100644 --- a/OptiScaler/hooks/HooksVk.cpp +++ b/OptiScaler/hooks/HooksVk.cpp @@ -8,6 +8,7 @@ #include #include +#include typedef struct VkWin32SurfaceCreateInfoKHR { @@ -184,6 +185,9 @@ static VkResult hkvkQueuePresentKHR(VkQueue queue, VkPresentInfoKHR* pPresentInf auto result = o_QueuePresentKHR(queue, pPresentInfo); State::Instance().vulkanCreatingSC = false; + // Unsure about Vulkan Reflex fps limit and if that could be causing an issue here + FrameLimit::sleep(); + LOG_FUNC_RESULT(result); return result; }