From: Toni Wilen Date: Thu, 9 Nov 2023 17:17:40 +0000 (+0200) Subject: Always enable ALLOW_TEARING if no vsync. X-Git-Tag: 5.1.0~58 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=4cae2257c22a0d756f4bef230a7369d70aa804e2;p=francis%2Fwinuae.git Always enable ALLOW_TEARING if no vsync. --- 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; }