1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Hide frame related information if no frame instrumentation.

This commit is contained in:
Bartosz Taudul
2022-09-05 20:12:36 +02:00
parent 23ebce2862
commit 5200ea2c84
4 changed files with 84 additions and 75 deletions
+7 -4
View File
@@ -296,12 +296,15 @@ void View::DrawTimeline()
m_tc.Begin();
DrawTimelineFramesHeader();
auto& frames = m_worker.GetFrames();
for( auto fd : frames )
if( m_worker.AreFramesUsed() )
{
if( Vis( fd ) )
auto& frames = m_worker.GetFrames();
for( auto fd : frames )
{
DrawTimelineFrames( *fd );
if( Vis( fd ) )
{
DrawTimelineFrames( *fd );
}
}
}