Add fallback FPS Limit to Vulkan

This commit is contained in:
FakeMichau
2025-05-26 21:00:47 +02:00
committed by Michał Lewandowski
parent 244894b3e5
commit 40bc86afeb
+4
View File
@@ -8,6 +8,7 @@
#include <proxies/Kernel32_Proxy.h>
#include <detours/detours.h>
#include <misc/FrameLimit.h>
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;
}