From 747834e9b02288f9ab7a2514fdffd85ad78db6ab Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 1 Jun 2021 17:24:58 +0100 Subject: [PATCH] [d3d9] Bump frame id before presentation --- src/d3d9/d3d9_swapchain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index 5e8ee41d..8b37a9cb 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -778,6 +778,9 @@ namespace dxvk { auto swapImage = m_backBuffers[0]->GetCommonTexture()->GetImage(); auto swapImageView = m_backBuffers[0]->GetImageView(false); + // Bump our frame id. + ++m_frameId; + for (uint32_t i = 0; i < SyncInterval || i < 1; i++) { SynchronizePresent(); @@ -820,9 +823,6 @@ namespace dxvk { SubmitPresent(sync, i); } - // Bump our frame id. - ++m_frameId; - SyncFrameLatency(); // Rotate swap chain buffers so that the back