mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
stale comments
This commit is contained in:
parent
3d69c485be
commit
6d04913b4a
@ -225,13 +225,12 @@ public:
|
|||||||
for (auto i = 0; i < numResolvedTimestamps; ++i)
|
for (auto i = 0; i < numResolvedTimestamps; ++i)
|
||||||
{
|
{
|
||||||
MTLTimestamp& timestamp = timestamps[i].timestamp;
|
MTLTimestamp& timestamp = timestamps[i].timestamp;
|
||||||
// TODO: check the value of timestamp: MTLCounterErrorValue, zero, or valid
|
|
||||||
if (timestamp == MTLCounterErrorValue)
|
if (timestamp == MTLCounterErrorValue)
|
||||||
{
|
{
|
||||||
TracyMetalPanic("Collect: invalid timestamp: MTLCounterErrorValue (0xFF..FF).");
|
TracyMetalPanic("Collect: invalid timestamp: MTLCounterErrorValue (0xFF..FF).");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (timestamp == 0)
|
if (timestamp == 0) // zero is apparently also considered "invalid"...
|
||||||
{
|
{
|
||||||
TracyMetalPanic("Collect: invalid timestamp: zero.");
|
TracyMetalPanic("Collect: invalid timestamp: zero.");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user