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:
parent
6e03bb1c2c
commit
9473272512
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user