Add background tasks icon.

This commit is contained in:
Bartosz Taudul 2019-06-22 14:37:17 +02:00
parent 4d4190c825
commit 0944eab707
2 changed files with 9 additions and 1 deletions

View File

@ -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}

View File

@ -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 )
{