From bab798c13c0135e974522db90eceb338725b295f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 28 Jun 2018 01:08:08 +0200 Subject: [PATCH] GPU context time drift storage. --- server/TracyView.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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;