[d3d11] Do not implicitly stall waitable swap chains

This commit is contained in:
Philip Rebohle 2022-09-02 14:29:38 +02:00
parent 17320776f0
commit 439043ddb4
1 changed files with 4 additions and 1 deletions

View File

@ -572,7 +572,10 @@ namespace dxvk {
uint32_t D3D11SwapChain::GetActualFrameLatency() {
uint32_t maxFrameLatency = m_frameLatency;
// DXGI does not seem to implicitly synchronize waitable swap chains,
// so in that case we should just respect the user config. For regular
// swap chains, pick the latency from the DXGI device.
uint32_t maxFrameLatency = DXGI_MAX_SWAP_CHAIN_BUFFERS;
if (!(m_desc.Flags & DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT))
m_dxgiDevice->GetMaximumFrameLatency(&maxFrameLatency);