From ed1a4b06b6ef0328825deda50a290179a38e0200 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 30 Jun 2026 16:57:19 +0200 Subject: [PATCH] No cumulate time for frames. --- profiler/src/profiler/TracyView_Compare.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/profiler/src/profiler/TracyView_Compare.cpp b/profiler/src/profiler/TracyView_Compare.cpp index c70860dd..a57d1f04 100644 --- a/profiler/src/profiler/TracyView_Compare.cpp +++ b/profiler/src/profiler/TracyView_Compare.cpp @@ -321,6 +321,7 @@ void View::DrawCompare() if( ImGui::BeginTabItem( "Frames" ) ) { m_compare.compareMode = 1; + m_compare.cumulateTime = false; ImGui::EndTabItem(); } if( ImGui::BeginTabItem( "Source diff" ) ) @@ -814,8 +815,11 @@ void View::DrawCompare() ImGui::SameLine(); SmallCheckbox( "Log time", &m_compare.logTime ); ImGui::SameLine(); - SmallCheckbox( "Cumulate time", &m_compare.cumulateTime ); - ImGui::SameLine(); + if( m_compare.compareMode == 0 ) + { + SmallCheckbox( "Cumulate time", &m_compare.cumulateTime ); + ImGui::SameLine(); + } DrawHelpMarker( "Show total time taken by calls in each bin instead of call counts." ); ImGui::SameLine(); SmallCheckbox( "Normalize values", &m_compare.normalize );