mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Simplify condition.
This commit is contained in:
parent
88cb43ad84
commit
c8c6646f52
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user