Gtk/Qt/Vulkan: Don't set vsync before swapping.

This destroys the swapchain.
This commit is contained in:
BearOso 2024-12-06 15:10:54 -06:00
parent a7d59843da
commit 0e309e5c7c
2 changed files with 2 additions and 2 deletions

View File

@ -203,6 +203,8 @@ void S9xVulkanDisplayDriver::update(uint16_t *buffer, int width, int height, int
if (!context)
return;
context->swapchain->set_vsync(gui_config->sync_to_vblank);
if (S9xImGuiDraw(current_width, current_height))
{
ImDrawData *draw_data = ImGui::GetDrawData();
@ -233,7 +235,6 @@ void S9xVulkanDisplayDriver::update(uint16_t *buffer, int width, int height, int
throttle.wait_for_frame_and_rebase_time();
}
context->swapchain->set_vsync(gui_config->sync_to_vblank);
context->swapchain->swap();
if (gui_config->reduce_input_lag)

View File

@ -223,7 +223,6 @@ void EmuCanvasVulkan::draw()
if (retval)
{
throttle();
context->swapchain->set_vsync(config->enable_vsync);
context->swapchain->swap();
if (config->reduce_input_lag)
{