mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
fixing timestamp mapping range
This commit is contained in:
parent
94407dbd1f
commit
3d69c485be
@ -213,7 +213,7 @@ public:
|
||||
TracyMetalPanic("Collect: too many pending timestamp queries.", return false;);
|
||||
}
|
||||
|
||||
NSRange range = NSMakeRange(begin, count);
|
||||
NSRange range = NSMakeRange(RingIndex(begin), count);
|
||||
NSData* data = [m_counterSampleBuffer resolveCounterRange:range];
|
||||
NSUInteger numResolvedTimestamps = data.length / sizeof(MTLCounterResultTimestamp);
|
||||
MTLCounterResultTimestamp* timestamps = (MTLCounterResultTimestamp *)(data.bytes);
|
||||
|
Loading…
Reference in New Issue
Block a user