From 4cae2257c22a0d756f4bef230a7369d70aa804e2 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 9 Nov 2023 19:17:40 +0200 Subject: [PATCH] Always enable ALLOW_TEARING if no vsync. --- od-win32/direct3d11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/od-win32/direct3d11.cpp b/od-win32/direct3d11.cpp index 9a1c6b7a..3b461d73 100644 --- a/od-win32/direct3d11.cpp +++ b/od-win32/direct3d11.cpp @@ -3357,7 +3357,7 @@ static void do_present(struct d3d11struct *d3d) UINT syncinterval = d3d->vblankintervals; // only if no vsync or low latency vsync if (d3d->m_tearingSupport && (d3d->swapChainDesc.Flags & DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING) && (!vsync || apm->gfx_vsyncmode)) { - if (apm->gfx_vsyncmode || d3d->num > 0 || currprefs.turbo_emulation || currprefs.gfx_variable_sync) { + if (apm->gfx_vsyncmode || d3d->num > 0 || currprefs.turbo_emulation || (currprefs.gfx_variable_sync > 0 || (isfs(d3d) <= 0) && currprefs.gfx_variable_sync >= 0)) { presentFlags |= DXGI_PRESENT_ALLOW_TEARING; syncinterval = 0; } -- 2.47.3