Simplify condition.

This commit is contained in:
Bartosz Taudul 2023-04-25 00:03:48 +02:00
parent 88cb43ad84
commit c8c6646f52
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -779,17 +779,13 @@ const char* View::GetFrameText( const FrameData& fd, int i, uint64_t ftime ) con
{ {
sprintf( buf, "Tracy init (%s)", TimeToString( ftime ) ); sprintf( buf, "Tracy init (%s)", TimeToString( ftime ) );
} }
else if( !m_worker.IsOnDemand() ) else if( i != 1 || !m_worker.IsOnDemand() )
{ {
sprintf( buf, "Frame %s (%s)", RealToString( fnum ), TimeToString( ftime ) ); sprintf( buf, "Frame %s (%s)", RealToString( fnum ), TimeToString( ftime ) );
} }
else if( i == 1 )
{
sprintf( buf, "Missed frames (%s)", TimeToString( ftime ) );
}
else else
{ {
sprintf( buf, "Frame %s (%s)", RealToString( fnum ), TimeToString( ftime ) ); sprintf( buf, "Missed frames (%s)", TimeToString( ftime ) );
} }
} }
else else