From 94732725129bc91719da5e10c0dbc29831dbfb5d Mon Sep 17 00:00:00 2001 From: Andrew Depke Date: Mon, 8 Jun 2020 16:57:31 -0600 Subject: [PATCH] Fixed queryId not looping back --- TracyD3D12.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TracyD3D12.hpp b/TracyD3D12.hpp index b0436af9..805fdc5a 100644 --- a/TracyD3D12.hpp +++ b/TracyD3D12.hpp @@ -178,7 +178,7 @@ namespace tracy for (uint32_t index = 0; index < m_queryCounter; ++index) { const auto timestamp = timestampData[(m_previousQueryCounter + index) % m_queryLimit]; - const auto queryId = m_previousQueryCounter + index; + const auto queryId = (m_previousQueryCounter + index) % m_queryLimit; auto* item = Profiler::QueueSerial(); MemWrite(&item->hdr.type, QueueType::GpuTime);