diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 883824ec..afc41677 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -1170,7 +1170,7 @@ static void DrawContents() static float rnTime = 0; rnTime += ImGui::GetIO().DeltaTime; tracy::TextCentered( "Fetching release notes…" ); - tracy::DrawWaitingDots( rnTime ); + tracy::DrawWaitingDotsCentered( rnTime ); } else { @@ -1222,7 +1222,7 @@ static void DrawContents() ImGui::PopFont(); animTime += ImGui::GetIO().DeltaTime; - tracy::DrawWaitingDots( animTime ); + tracy::DrawWaitingDotsCentered( animTime ); auto currProgress = progress.progress.load( std::memory_order_relaxed ); if( totalProgress == 0 ) @@ -1309,7 +1309,7 @@ static void DrawContents() ImGui::Spacing(); ImGui::PopFont(); animTime += ImGui::GetIO().DeltaTime; - tracy::DrawWaitingDots( animTime ); + tracy::DrawWaitingDotsCentered( animTime ); ImGui::TextUnformatted( "Please wait, cleanup is in progress" ); ImGui::EndPopup(); } diff --git a/profiler/src/profiler/TracyImGui.hpp b/profiler/src/profiler/TracyImGui.hpp index 731a80d1..c409a70b 100644 --- a/profiler/src/profiler/TracyImGui.hpp +++ b/profiler/src/profiler/TracyImGui.hpp @@ -119,7 +119,7 @@ static constexpr const uint32_t AsmSyntaxColors[] = { ImGui::TextUnformatted( value ); } -[[maybe_unused]] static inline void DrawWaitingDots( double time ) +[[maybe_unused]] static inline void DrawWaitingDotsCentered( double time ) { s_wasActive = true; ImGui::TextUnformatted( "" ); diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index 00d0ca56..732d348e 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -85,7 +85,7 @@ void TracyLlm::Draw() ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 ) * 0.5f ) ); TextCentered( ICON_FA_HOURGLASS ); TextCentered( "Please wait…" ); - DrawWaitingDots( s_time ); + DrawWaitingDotsCentered( s_time ); ImGui::PopFont(); ImGui::End(); return; @@ -102,7 +102,7 @@ void TracyLlm::Draw() ImGui::Spacing(); TextCentered( "Building manual embeddings…" ); ImGui::Spacing(); - DrawWaitingDots( s_time ); + DrawWaitingDotsCentered( s_time ); ImGui::TextUnformatted( "" ); ImGui::PopFont(); const float w = 100 * scale; diff --git a/profiler/src/profiler/TracyView.cpp b/profiler/src/profiler/TracyView.cpp index 22718ef8..015e3831 100644 --- a/profiler/src/profiler/TracyView.cpp +++ b/profiler/src/profiler/TracyView.cpp @@ -702,7 +702,7 @@ bool View::DrawImpl() ImGui::Spacing(); ImGui::PopFont(); ImGui::TextUnformatted( "Waiting for connection…" ); - DrawWaitingDots( s_time ); + DrawWaitingDotsCentered( s_time ); ImGui::End(); return keepOpen; } diff --git a/profiler/src/profiler/TracyView_Compare.cpp b/profiler/src/profiler/TracyView_Compare.cpp index ba6c4a42..66a3a3eb 100644 --- a/profiler/src/profiler/TracyView_Compare.cpp +++ b/profiler/src/profiler/TracyView_Compare.cpp @@ -267,7 +267,7 @@ void View::DrawCompare() TextCentered( ICON_FA_FROG ); TextCentered( "Please wait, computing data…" ); ImGui::PopFont(); - DrawWaitingDots( s_time ); + DrawWaitingDotsCentered( s_time ); ImGui::End(); return; } diff --git a/profiler/src/profiler/TracyView_FindZone.cpp b/profiler/src/profiler/TracyView_FindZone.cpp index 7f64e536..4261da2c 100644 --- a/profiler/src/profiler/TracyView_FindZone.cpp +++ b/profiler/src/profiler/TracyView_FindZone.cpp @@ -273,7 +273,7 @@ void View::DrawFindZone() TextCentered( ICON_FA_CROW ); TextCentered( "Please wait, computing data…" ); ImGui::PopFont(); - DrawWaitingDots( s_time ); + DrawWaitingDotsCentered( s_time ); ImGui::End(); return; } diff --git a/profiler/src/profiler/TracyView_Statistics.cpp b/profiler/src/profiler/TracyView_Statistics.cpp index 05a96a34..12bcad7e 100644 --- a/profiler/src/profiler/TracyView_Statistics.cpp +++ b/profiler/src/profiler/TracyView_Statistics.cpp @@ -53,7 +53,7 @@ void View::DrawStatistics() TextCentered( ICON_FA_HIPPO ); TextCentered( "Please wait, computing data…" ); ImGui::PopFont(); - DrawWaitingDots( s_time ); + DrawWaitingDotsCentered( s_time ); ImGui::End(); return; } @@ -105,7 +105,7 @@ void View::DrawStatistics() ImGui::Separator(); ImGui::PopStyleVar(); ImGui::TextWrapped( "Please wait, computing data…" ); - DrawWaitingDots( s_time ); + DrawWaitingDotsCentered( s_time ); ImGui::End(); return; } @@ -328,7 +328,7 @@ void View::DrawStatistics() ImGui::Separator(); ImGui::PopStyleVar(); ImGui::TextWrapped( "Please wait, computing data…" ); - DrawWaitingDots( s_time ); + DrawWaitingDotsCentered( s_time ); ImGui::End(); return; } diff --git a/profiler/src/profiler/TracyView_ZoneInfo.cpp b/profiler/src/profiler/TracyView_ZoneInfo.cpp index d06605e0..560e35e1 100644 --- a/profiler/src/profiler/TracyView_ZoneInfo.cpp +++ b/profiler/src/profiler/TracyView_ZoneInfo.cpp @@ -799,7 +799,7 @@ void View::DrawZoneInfoWindow() if( !mem.plot ) { ImGui::Text( "Please wait, computing data…" ); - DrawWaitingDots( s_time ); + DrawWaitingDotsCentered( s_time ); } else {