mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +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;
|
m_frameHover = sel;
|
||||||
if( m_frames->name == 0 )
|
if( m_frames->name == 0 )
|
||||||
{
|
{
|
||||||
const auto offset = m_worker.GetFrameOffset();
|
|
||||||
if( sel == 0 )
|
if( sel == 0 )
|
||||||
{
|
{
|
||||||
ImGui::TextUnformatted( "Tracy initialization" );
|
ImGui::TextUnformatted( "Tracy initialization" );
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
TextFocused( "Time:", TimeToString( m_worker.GetFrameTime( *m_frames, sel ) ) );
|
TextFocused( "Time:", TimeToString( m_worker.GetFrameTime( *m_frames, sel ) ) );
|
||||||
}
|
}
|
||||||
else if( offset == 0 )
|
else if( !m_worker.IsOnDemand() )
|
||||||
{
|
{
|
||||||
TextDisabledUnformatted( "Frame:" );
|
TextDisabledUnformatted( "Frame:" );
|
||||||
ImGui::SameLine();
|
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 ) );
|
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 ) );
|
sprintf( buf, "Frame %s (%s)", RealToString( fnum ), TimeToString( ftime ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user