mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-29 21:13:14 +00:00
Add fallback FPS Limit to Vulkan
This commit is contained in:
committed by
Michał Lewandowski
parent
244894b3e5
commit
40bc86afeb
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user