disable vsync

This commit is contained in:
Alessandro Mauri 2025-06-12 20:01:33 +02:00
parent 00f5e71666
commit 10ee643a0c

View File

@ -158,6 +158,9 @@ $endif
unreachable("failed to claim window for use with gpu: %s", sdl::get_error()); unreachable("failed to claim window for use with gpu: %s", sdl::get_error());
} }
// set swapchain parameters, like vsync
sdl::set_gpu_swapchain_parameters(self.gpu, self.win, GPU_SWAPCHAINCOMPOSITION_SDR, GPU_PRESENTMODE_IMMEDIATE);
// //
// initialize the quad buffer // initialize the quad buffer
// ========================== // ==========================