mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-05 01:24:14 +01:00
[d3d11] Fix frame latency based on buffer count
We need to ignore the front buffer here since we synchronize after presentation.
This commit is contained in:
parent
60b6e98529
commit
166d90b04c
@ -685,7 +685,7 @@ namespace dxvk {
|
|||||||
if (m_frameLatencyCap)
|
if (m_frameLatencyCap)
|
||||||
maxFrameLatency = std::min(maxFrameLatency, m_frameLatencyCap);
|
maxFrameLatency = std::min(maxFrameLatency, m_frameLatencyCap);
|
||||||
|
|
||||||
maxFrameLatency = std::min(maxFrameLatency, m_desc.BufferCount + 1);
|
maxFrameLatency = std::min(maxFrameLatency, m_desc.BufferCount);
|
||||||
return maxFrameLatency;
|
return maxFrameLatency;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user