Skip to content

Commit 05d0038

Browse files
committed
Better "please wait" view in compare window.
1 parent 39ee307 commit 05d0038

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎profiler/src/profiler/TracyView_Compare.cpp‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,12 @@ void View::DrawCompare()
280280

281281
if( !m_worker.AreSourceLocationZonesReady() || !m_compare.second->AreSourceLocationZonesReady() )
282282
{
283-
ImGui::TextWrapped( "Please wait, computing data..." );
283+
const auto ty = ImGui::GetTextLineHeight();
284+
ImGui::PushFont( m_bigFont );
285+
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 - ty ) * 0.5f ) );
286+
TextCentered( ICON_FA_FROG );
287+
TextCentered( "Please wait, computing data..." );
288+
ImGui::PopFont();
284289
DrawWaitingDots( s_time );
285290
ImGui::End();
286291
return;

0 commit comments

Comments
 (0)