diff --git a/TracyVulkan.hpp b/TracyVulkan.hpp index 1dcb9b83..0858b7bd 100644 --- a/TracyVulkan.hpp +++ b/TracyVulkan.hpp @@ -25,7 +25,7 @@ namespace tracy { -extern std::atomic s_vkCtxCounter; +extern std::atomic s_gpuCtxCounter; class VkCtx { @@ -37,7 +37,7 @@ public: VkCtx( VkPhysicalDevice physdev, VkDevice device, VkQueue queue, VkCommandBuffer cmdbuf ) : m_device( device ) , m_queue( queue ) - , m_context( s_vkCtxCounter.fetch_add( 1, std::memory_order_relaxed ) ) + , m_context( s_gpuCtxCounter.fetch_add( 1, std::memory_order_relaxed ) ) , m_head( 0 ) , m_tail( 0 ) , m_oldCnt( 0 ) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 215c254b..b0398f07 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -169,7 +169,6 @@ static RPMallocInit init_order(102) s_rpmalloc_init; moodycamel::ConcurrentQueue init_order(103) s_queue( QueuePrealloc ); std::atomic init_order(104) s_lockCounter( 0 ); std::atomic init_order(104) s_gpuCtxCounter( 0 ); -std::atomic init_order(104) s_vkCtxCounter( 0 ); thread_local GpuCtxWrapper init_order(104) s_gpuCtx { nullptr }; VkCtxWrapper init_order(104) s_vkCtx { nullptr };