mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +00:00
Collect pending timestamps upon context destruction
This commit is contained in:
parent
2e3ae95882
commit
42b088d085
@ -215,6 +215,11 @@ namespace tracy
|
|||||||
|
|
||||||
~D3D12QueueCtx()
|
~D3D12QueueCtx()
|
||||||
{
|
{
|
||||||
|
ZoneScopedC(Color::Red4);
|
||||||
|
// collect all pending timestamps
|
||||||
|
while (m_payloadFence->GetCompletedValue() != m_activePayload)
|
||||||
|
/* busy-wait ... */;
|
||||||
|
Collect();
|
||||||
m_payloadFence->Release();
|
m_payloadFence->Release();
|
||||||
m_readbackBuffer->Release();
|
m_readbackBuffer->Release();
|
||||||
m_queryHeap->Release();
|
m_queryHeap->Release();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user