mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Fixed queryId not looping back
This commit is contained in:
parent
6e03bb1c2c
commit
9473272512
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user