From eed43c8524ec0003e0ffe8fe8cf7e524f02867bc Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 21 Jul 2023 10:22:56 +0200 Subject: [PATCH] [dxgi] Fix QPC time in frame statistics --- src/dxgi/dxgi_swapchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxgi/dxgi_swapchain.cpp b/src/dxgi/dxgi_swapchain.cpp index 60ae6bf8..fee7cf7b 100644 --- a/src/dxgi/dxgi_swapchain.cpp +++ b/src/dxgi/dxgi_swapchain.cpp @@ -202,7 +202,7 @@ namespace dxvk { pStats->PresentCount = frameStatistics.PresentCount; pStats->PresentRefreshCount = 0; pStats->SyncRefreshCount = 0; - pStats->SyncQPCTime.QuadPart = t1Counter; + pStats->SyncQPCTime.QuadPart = frameStatistics.PresentQPCTime; pStats->SyncGPUTime.QuadPart = 0; if (SUCCEEDED(AcquireMonitorData(m_monitor, &monitorData))) {