Qt: Change vsync setting immediately when config changes.

This commit is contained in:
BearOso 2023-09-04 11:38:00 -05:00
parent 7ad393572f
commit f45e22b08d
2 changed files with 3 additions and 2 deletions

View File

@ -178,6 +178,9 @@ void EmuCanvasVulkan::draw()
if (!window->isVisible())
return;
if (context->swapchain->set_vsync(config->enable_vsync))
context->recreate_swapchain();
if (S9xImGuiDraw(width() * devicePixelRatioF(), height() * devicePixelRatioF()))
{
auto draw_data = ImGui::GetDrawData();

View File

@ -225,9 +225,7 @@ bool EmuConfig::setDefaults(int section)
restart_set(display_driver, "vulkan");
restart_set(display_device_index, 0);
enable_vsync = true;
;
bilinear_filter = true;
;
reduce_input_lag = true;
adjust_for_vrr = false;
restart_set(use_shader, false);