More efficient way to check if there are zones.

This commit is contained in:
Bartosz Taudul 2024-06-10 22:51:53 +02:00
parent 65576a294e
commit 3cb7fd8a5e
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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 );