Qt: Change vsync setting immediately when config changes.
This commit is contained in:
parent
7ad393572f
commit
f45e22b08d
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user