Collect pending timestamps upon context destruction

This commit is contained in:
Marcos Slomp 2023-09-11 12:46:03 -07:00
parent 2e3ae95882
commit 42b088d085

View File

@ -215,6 +215,11 @@ namespace tracy
~D3D12QueueCtx()
{
ZoneScopedC(Color::Red4);
// collect all pending timestamps
while (m_payloadFence->GetCompletedValue() != m_activePayload)
/* busy-wait ... */;
Collect();
m_payloadFence->Release();
m_readbackBuffer->Release();
m_queryHeap->Release();