mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
More efficient way to check if there are zones.
This commit is contained in:
parent
65576a294e
commit
3cb7fd8a5e
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user