From 7a1b9efc2ffb71b9186944ea6e468b31e36d26b6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 29 Jan 2022 00:33:53 +0100 Subject: [PATCH] Add GPU statistics radio button. --- server/TracyView.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index d819341b..97798d96 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -12739,6 +12739,13 @@ void View::DrawStatistics() ImGui::RadioButton( ICON_FA_PUZZLE_PIECE " Symbols", &m_statMode, 1 ); } } + if( m_worker.GetGpuZoneCount() > 0 ) + { + ImGui::SameLine(); + ImGui::Spacing(); + ImGui::SameLine(); + ImGui::RadioButton( ICON_FA_EYE " GPU", &m_statMode, 2 ); + } ImGui::SameLine(); ImGui::Spacing(); ImGui::SameLine();