From 3cb7fd8a5ea8db3fdcc773a9f6a494aec601e0b3 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 10 Jun 2024 22:51:53 +0200 Subject: [PATCH] More efficient way to check if there are zones. --- profiler/src/profiler/TracyView.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/profiler/src/profiler/TracyView.cpp b/profiler/src/profiler/TracyView.cpp index f7025c05..7dcdeeda 100644 --- a/profiler/src/profiler/TracyView.cpp +++ b/profiler/src/profiler/TracyView.cpp @@ -676,16 +676,7 @@ bool View::DrawImpl() if( m_achievements ) { if( m_worker.IsConnected() ) Achieve( "connectToClient" ); - - const auto& threadData = m_worker.GetThreadData(); - for( auto& td : threadData ) - { - if( !td->timeline.empty() ) - { - Achieve( "instrumentationIntro" ); - break; - } - } + if( m_worker.GetZoneCount() > 0 ) Achieve( "instrumentationIntro" ); } Attention( m_attnWorking );