From 9b5d0747eb6be7d5b10547777abc0b12d9b70550 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 4 Aug 2022 18:46:37 +0200 Subject: [PATCH] Add overview of frame target colors. --- server/TracyView_Options.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/server/TracyView_Options.cpp b/server/TracyView_Options.cpp index ca0372f7..a2c8f6d8 100644 --- a/server/TracyView_Options.cpp +++ b/server/TracyView_Options.cpp @@ -34,6 +34,19 @@ void View::DrawOptions() ImGui::SameLine(); TextDisabledUnformatted( TimeToString( 1000*1000*1000 / tmp ) ); ImGui::PopStyleVar(); + SmallColorBox( 0xFF2222DD ); + ImGui::SameLine(); + ImGui::Text( "< %i <", tmp / 2 ); + ImGui::SameLine(); + SmallColorBox( 0xFF22DDDD ); + ImGui::SameLine(); + ImGui::Text( "< %i <", tmp ); + ImGui::SameLine(); + SmallColorBox( 0xFF22DD22 ); + ImGui::SameLine(); + ImGui::Text( "< %i <", tmp * 2 ); + ImGui::SameLine(); + SmallColorBox( 0xFFDD9900 ); ImGui::Unindent(); if( m_worker.HasContextSwitches() ) {