Display waiting dots in find zone menu during precompute.

This commit is contained in:
Bartosz Taudul 2019-03-06 18:25:39 +01:00
parent d5914d2e7b
commit f2f19241e6

View File

@ -42,6 +42,8 @@
namespace tracy namespace tracy
{ {
static double s_time = 0;
static const char* s_tracyStackFrames[] = { static const char* s_tracyStackFrames[] = {
"tracy::Callstack", "tracy::Callstack",
"tracy::GpuCtxScope::{ctor}", "tracy::GpuCtxScope::{ctor}",
@ -5627,6 +5629,8 @@ void View::DrawFindZone()
if( !m_worker.AreSourceLocationZonesReady() ) if( !m_worker.AreSourceLocationZonesReady() )
{ {
ImGui::TextWrapped( "Please wait, computing data..." ); ImGui::TextWrapped( "Please wait, computing data..." );
s_time += ImGui::GetIO().DeltaTime;
DrawWaitingDots( s_time );
ImGui::End(); ImGui::End();
return; return;
} }