mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d11] Do not implicitly stall waitable swap chains
This commit is contained in:
parent
17320776f0
commit
439043ddb4
1 changed files with 4 additions and 1 deletions
|
@ -572,7 +572,10 @@ namespace dxvk {
|
||||||
|
|
||||||
|
|
||||||
uint32_t D3D11SwapChain::GetActualFrameLatency() {
|
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))
|
if (!(m_desc.Flags & DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT))
|
||||||
m_dxgiDevice->GetMaximumFrameLatency(&maxFrameLatency);
|
m_dxgiDevice->GetMaximumFrameLatency(&maxFrameLatency);
|
||||||
|
|
Loading…
Add table
Reference in a new issue