From 80e6087ff3ab360d34ea259a8f3ab6dc213892a2 Mon Sep 17 00:00:00 2001 From: Marcos Slomp Date: Wed, 8 Apr 2026 12:53:48 -0700 Subject: [PATCH] claim shared ownership of the queue to keep the queue (and device) alive --- public/tracy/TracyD3D12.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/tracy/TracyD3D12.hpp b/public/tracy/TracyD3D12.hpp index 466b3191..f3df4cc7 100644 --- a/public/tracy/TracyD3D12.hpp +++ b/public/tracy/TracyD3D12.hpp @@ -146,6 +146,8 @@ namespace tracy { ZoneScopedC(Color::Red4); + m_queue->AddRef(); + // Verify we support timestamp queries on this queue. if (queue->GetDesc().Type == D3D12_COMMAND_LIST_TYPE_COPY) { @@ -277,6 +279,7 @@ namespace tracy #endif m_readbackBuffer->Release(); m_queryHeap->Release(); + m_queue->Release(); } void Name( const char* name, uint16_t len )