From 0944eab70738aa2a5558b718322f30ce823bf698 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 22 Jun 2019 14:37:17 +0200 Subject: [PATCH] Add background tasks icon. --- manual/tracy.tex | 2 +- server/TracyView.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/manual/tracy.tex b/manual/tracy.tex index 94e15eb7..b2d975c3 100644 --- a/manual/tracy.tex +++ b/manual/tracy.tex @@ -1158,7 +1158,7 @@ The frame information block consists of four elements: the current frame set nam The next two items show the \faEye{}~view time range and \faDatabase{}~time span of the whole capture. -The notification area is used to display informational notices, for example how long it took to load a trace from disk. A pulsating dot indicates that some background tasks are being performed, that may need to be completed before full capabilities of the profiler are available. +The notification area is used to display informational notices, for example how long it took to load a trace from disk. A pulsating dot next to the \faTasks~icon indicates that some background tasks are being performed, that may need to be completed before full capabilities of the profiler are available. \subsubsection{Frame time graph} diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 9830001b..f0975786 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -598,9 +598,17 @@ bool View::DrawImpl() if( !m_worker.IsBackgroundDone() ) { ImGui::SameLine(); +#ifdef TRACY_EXTENDED_FONT + TextDisabledUnformatted( ICON_FA_TASKS ); + ImGui::SameLine(); const auto pos = ImGui::GetCursorPos(); ImGui::TextUnformatted( " " ); ImGui::GetWindowDrawList()->AddCircleFilled( pos + ImVec2( 0, ty * 0.75f ), ty * ( 0.2f + ( sin( s_time * 8 ) + 1 ) * 0.125f ), 0xFF888888, 10 ); +#else + const auto pos = ImGui::GetCursorPos(); + ImGui::TextUnformatted( " " ); + ImGui::GetWindowDrawList()->AddCircleFilled( pos + ImVec2( 0, ty * 0.75f ), ty * ( 0.2f + ( sin( s_time * 8 ) + 1 ) * 0.125f ), 0xFF888888, 10 ); +#endif } if( m_saveThreadState.load( std::memory_order_relaxed ) == SaveThreadState::Saving ) {