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
+1 -1
View File
@@ -183,7 +183,7 @@ void View::DrawInfo()
ImGui::TreePop();
}
if( ImGui::TreeNode( "Frame statistics" ) )
if( m_worker.AreFramesUsed() && ImGui::TreeNode( "Frame statistics" ) )
{
auto fsz = m_worker.GetFullFrameCount( *m_frames );
if( fsz != 0 )