1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Fixed queryId not looping back

This commit is contained in:
Andrew Depke 2020-06-08 16:57:31 -06:00
parent 6e03bb1c2c
commit 9473272512

View File

@ -178,7 +178,7 @@ namespace tracy
for (uint32_t index = 0; index < m_queryCounter; ++index) for (uint32_t index = 0; index < m_queryCounter; ++index)
{ {
const auto timestamp = timestampData[(m_previousQueryCounter + index) % m_queryLimit]; 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(); auto* item = Profiler::QueueSerial();
MemWrite(&item->hdr.type, QueueType::GpuTime); MemWrite(&item->hdr.type, QueueType::GpuTime);