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)
{
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);