Add Vsync configuration support to the RHI. (#1)

This commit is contained in:
Darío
2024-10-30 05:32:30 -03:00
committed by GitHub
parent ca9009b88d
commit 7d04ed057c
6 changed files with 40 additions and 5 deletions

View File

@@ -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)