From 1ab0b5abd25642f12264c3b2ca711dacf130ffe4 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 15 Oct 2024 01:51:58 +0200 Subject: [PATCH] Improve "no wait stacks" view. --- profiler/src/profiler/TracyView_ContextSwitch.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_ContextSwitch.cpp b/profiler/src/profiler/TracyView_ContextSwitch.cpp index a1de9c13..a1cbae79 100644 --- a/profiler/src/profiler/TracyView_ContextSwitch.cpp +++ b/profiler/src/profiler/TracyView_ContextSwitch.cpp @@ -508,7 +508,11 @@ void View::DrawWaitStacks() ImGui::BeginChild( "##waitstacks" ); if( stacks.empty() ) { - ImGui::TextUnformatted( "No wait stacks to display." ); + ImGui::PushFont( m_bigFont ); + ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 ) * 0.5f ) ); + TextCentered( ICON_FA_KIWI_BIRD ); + TextCentered( "No wait stacks to display" ); + ImGui::PopFont(); } else {