mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Use on demand flag to determine if need to show missed frames.
This commit is contained in:
parent
5ebc499f49
commit
9155b01ddf
@ -145,14 +145,13 @@ void View::DrawFrames()
|
||||
m_frameHover = sel;
|
||||
if( m_frames->name == 0 )
|
||||
{
|
||||
const auto offset = m_worker.GetFrameOffset();
|
||||
if( sel == 0 )
|
||||
{
|
||||
ImGui::TextUnformatted( "Tracy initialization" );
|
||||
ImGui::Separator();
|
||||
TextFocused( "Time:", TimeToString( m_worker.GetFrameTime( *m_frames, sel ) ) );
|
||||
}
|
||||
else if( offset == 0 )
|
||||
else if( !m_worker.IsOnDemand() )
|
||||
{
|
||||
TextDisabledUnformatted( "Frame:" );
|
||||
ImGui::SameLine();
|
||||
|
@ -778,7 +778,7 @@ const char* View::GetFrameText( const FrameData& fd, int i, uint64_t ftime, uint
|
||||
{
|
||||
sprintf( buf, "Tracy init (%s)", TimeToString( ftime ) );
|
||||
}
|
||||
else if( offset == 0 )
|
||||
else if( !m_worker.IsOnDemand() )
|
||||
{
|
||||
sprintf( buf, "Frame %s (%s)", RealToString( fnum ), TimeToString( ftime ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user