From f2f19241e6a4f71e2090f10ed6860b2492b46f7c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 6 Mar 2019 18:25:39 +0100 Subject: [PATCH] Display waiting dots in find zone menu during precompute. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 37a78352..536a419f 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -42,6 +42,8 @@ namespace tracy { +static double s_time = 0; + static const char* s_tracyStackFrames[] = { "tracy::Callstack", "tracy::GpuCtxScope::{ctor}", @@ -5627,6 +5629,8 @@ void View::DrawFindZone() if( !m_worker.AreSourceLocationZonesReady() ) { ImGui::TextWrapped( "Please wait, computing data..." ); + s_time += ImGui::GetIO().DeltaTime; + DrawWaitingDots( s_time ); ImGui::End(); return; }