Skip to content

Commit

Permalink
win32: vulkan: apply vsync setting during init
Browse files Browse the repository at this point in the history
  • Loading branch information
OV2 committed May 11, 2024
1 parent f62eb40 commit 911b416
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions win32/CVulkan.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 911b416

Please sign in to comment.