From e64a8ee61a0669b317043bb211f1c519bd4c47af Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 1 Jun 2021 17:24:54 +0100 Subject: [PATCH] [d3d11] Bump frame id before presentation --- src/d3d11/d3d11_swapchain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/d3d11/d3d11_swapchain.cpp b/src/d3d11/d3d11_swapchain.cpp index 3d076c38..de302a8a 100644 --- a/src/d3d11/d3d11_swapchain.cpp +++ b/src/d3d11/d3d11_swapchain.cpp @@ -240,6 +240,9 @@ namespace dxvk { // Flush pending rendering commands before auto immediateContext = static_cast(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; }