mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-09 04:59:43 -06:00
Add Vsync configuration support to the RHI. (#1)
This commit is contained in:
@@ -837,6 +837,7 @@ static void CreateHostDevice()
|
||||
g_copyCommandFence = g_device->createCommandFence();
|
||||
|
||||
g_swapChain = g_queue->createSwapChain(Window::s_windowHandle, Config::TripleBuffering ? 3 : 2, RenderFormat::B8G8R8A8_UNORM);
|
||||
g_swapChain->setVsyncEnabled(Config::VSync);
|
||||
g_swapChainValid = !g_swapChain->needsResize();
|
||||
|
||||
for (auto& acquireSemaphore : g_acquireSemaphores)
|
||||
|
||||
Reference in New Issue
Block a user