1
0
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:
Philip Rebohle 2023-06-22 15:38:09 +02:00
parent 60b6e98529
commit 166d90b04c

View File

@ -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;
} }