From 23db05b9903eeb5198641ccf1900023ecc869689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Mon, 7 Dec 2020 09:36:34 -0800 Subject: [PATCH] DXGI: Disabled DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT since support for it is not implemented correctly. --- src/dxgi.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/dxgi.cpp b/src/dxgi.cpp index 8bf4315de..0bfaf9d86 100644 --- a/src/dxgi.cpp +++ b/src/dxgi.cpp @@ -382,12 +382,12 @@ namespace bgfx BX_TRACE("Allow tearing is %ssupported.", allowTearing ? "" : "not "); scdFlags |= allowTearing ? DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING : 0; - scdFlags |= - (_scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL - || _scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_DISCARD) - ? DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT - : 0; - + scdFlags |= false + || _scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL + || _scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_DISCARD + ? 0 // DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT + : 0 + ; DX_RELEASE_I(factory5); } @@ -665,10 +665,12 @@ namespace bgfx BX_TRACE("Allow tearing is %ssupported.", allowTearing ? "" : "not "); scdFlags |= allowTearing ? DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING : 0; - scdFlags |= (_scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL - || _scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_DISCARD) - ? DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT - : 0; + scdFlags |= false + || _scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL + || _scd.swapEffect == DXGI_SWAP_EFFECT_FLIP_DISCARD + ? 0 // DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT + : 0 + ; DX_RELEASE_I(factory5); }