From b38ac8bfef9044c5763f189fc45fb6eb0a30feae Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 8 Jun 2024 13:31:23 +0200 Subject: [PATCH] Hook up instrumentation intro achievement. --- profiler/src/profiler/TracyView.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView.cpp b/profiler/src/profiler/TracyView.cpp index afd16e0d..f7025c05 100644 --- a/profiler/src/profiler/TracyView.cpp +++ b/profiler/src/profiler/TracyView.cpp @@ -673,7 +673,21 @@ bool View::DrawImpl() return keepOpen; } - if( m_worker.IsConnected() ) Achieve( "connectToClient" ); + 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; + } + } + } + Attention( m_attnWorking ); if( !m_uarchSet )