win32: vulkan: apply vsync setting during init

This commit is contained in:
OV2 2024-05-12 01:23:23 +02:00
parent f62eb40ac7
commit 911b416d28
1 changed files with 5 additions and 0 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); simple_output = std::make_unique<Vulkan::SimpleOutput>(context.get(), vk::Format::eR5G6B5UnormPack16);
return true; return true;