From e957590350aa3d7b59be99ab339741120a6570bb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 24 Mar 2019 13:37:43 +0100 Subject: [PATCH] Mirror thread data in a reorderable vector. --- server/TracyView.cpp | 14 ++++++++++++-- server/TracyView.hpp | 1 + 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e2c95751..07a94801 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1979,10 +1979,20 @@ void View::DrawZones() } } - auto& crash = m_worker.GetCrashEvent(); // zones + const auto& threadData = m_worker.GetThreadData(); + if( threadData.size() != m_threadOrder.size() ) + { + m_threadOrder.reserve( threadData.size() ); + for( int i=m_threadOrder.size(); i> m_visibleMsgThread; flat_hash_map> m_gpuDrift; flat_hash_map> m_plotView; + Vector m_threadOrder; tracy_force_inline VisData& Vis( const void* ptr ) {