1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 10:54:16 +01:00

[d3d11] Bump frame id before presentation

This commit is contained in:
Joshua Ashton 2021-06-01 17:24:54 +01:00 committed by Philip Rebohle
parent fcb7639106
commit e64a8ee61a

View File

@ -240,6 +240,9 @@ namespace dxvk {
// Flush pending rendering commands before
auto immediateContext = static_cast<D3D11ImmediateContext*>(deviceContext.ptr());
immediateContext->Flush();
// Bump our frame id.
++m_frameId;
for (uint32_t i = 0; i < SyncInterval || i < 1; i++) {
SynchronizePresent();
@ -283,9 +286,6 @@ namespace dxvk {
SubmitPresent(immediateContext, sync, i);
}
// Bump our frame id.
++m_frameId;
SyncFrameLatency();
return S_OK;
}