From a1064a3d26b46692852ed5305d59aa3e67c867d2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 3 Aug 2024 20:18:40 +0200 Subject: [PATCH] Observe thread grouping hint when a new thread appears. --- profiler/src/profiler/TracyView_Timeline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_Timeline.cpp b/profiler/src/profiler/TracyView_Timeline.cpp index d9b0d70b..010ce1ed 100644 --- a/profiler/src/profiler/TracyView_Timeline.cpp +++ b/profiler/src/profiler/TracyView_Timeline.cpp @@ -368,7 +368,8 @@ void View::DrawTimeline() m_threadOrder.reserve( threadData.size() ); for( size_t i=m_threadOrder.size(); igroupHint, []( const auto& lhs, const auto& rhs ) { return lhs < rhs->groupHint; } ); + m_threadOrder.insert( it, threadData[i] ); } } for( const auto& v : m_threadOrder )