mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 12:53:51 +00:00
Collect pending timestamps during shutdown
This commit is contained in:
parent
ea65b145c6
commit
799360dfb8
@ -144,6 +144,12 @@ public:
|
|||||||
~MetalCtx()
|
~MetalCtx()
|
||||||
{
|
{
|
||||||
ZoneScopedNC("~TracyMetalCtx", tracy::Color::Red4);
|
ZoneScopedNC("~TracyMetalCtx", tracy::Color::Red4);
|
||||||
|
ZoneValue(m_previousCheckpoint.load());
|
||||||
|
ZoneValue(m_queryCounter.load());
|
||||||
|
// collect the last remnants of Metal GPU activity...
|
||||||
|
// TODO: add a timeout to this loop?
|
||||||
|
while (m_previousCheckpoint.load() != m_queryCounter.load())
|
||||||
|
Collect();
|
||||||
}
|
}
|
||||||
|
|
||||||
static MetalCtx* Create(id<MTLDevice> device)
|
static MetalCtx* Create(id<MTLDevice> device)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user