Compare commits

...

2 commits

Author SHA1 Message Date
OV2
911b416d28 win32: vulkan: apply vsync setting during init 2024-05-12 01:23:23 +02:00
OV2
f62eb40ac7 win32: skip framerate throttling in turbo mode (#853) 2024-05-12 01:20:34 +02:00
2 changed files with 6 additions and 1 deletions

View file

@ -91,6 +91,11 @@ bool CVulkan::Initialize(HWND hWnd)
}
}
if (context->swapchain->set_vsync(GUI.Vsync))
{
context->recreate_swapchain();
}
simple_output = std::make_unique<Vulkan::SimpleOutput>(context.get(), vk::Format::eR5G6B5UnormPack16);
return true;

View file

@ -706,7 +706,7 @@ void WinThrottleFramerate()
static HANDLE throttle_timer = nullptr;
static int64_t PCBase, PCFrameTime, PCFrameTimeNTSC, PCFrameTimePAL, PCStart, PCEnd;
if (Settings.SkipFrames != AUTO_FRAMERATE)
if (Settings.SkipFrames != AUTO_FRAMERATE || Settings.TurboMode)
return;
if (!throttle_timer)