mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +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;);
|
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];
|
NSData* data = [m_counterSampleBuffer resolveCounterRange:range];
|
||||||
NSUInteger numResolvedTimestamps = data.length / sizeof(MTLCounterResultTimestamp);
|
NSUInteger numResolvedTimestamps = data.length / sizeof(MTLCounterResultTimestamp);
|
||||||
MTLCounterResultTimestamp* timestamps = (MTLCounterResultTimestamp *)(data.bytes);
|
MTLCounterResultTimestamp* timestamps = (MTLCounterResultTimestamp *)(data.bytes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user