diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 94654988..107e1662 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -131,6 +131,7 @@ private: flat_hash_map> m_visible; flat_hash_map> m_showFull; + flat_hash_map> m_gpuDrift; tracy_force_inline bool& Visible( const void* ptr ) { @@ -152,6 +153,16 @@ private: return it->second; } + tracy_force_inline int& GpuDrift( const void* ptr ) + { + auto it = m_gpuDrift.find( ptr ); + if( it == m_gpuDrift.end() ) + { + it = m_gpuDrift.emplace( ptr, 0 ).first; + } + return it->second; + } + Worker m_worker; bool m_staticView;