From b659d79ac1085da378c75ca3945fd0dcb5c982ec Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 23 May 2025 21:22:01 +0200 Subject: [PATCH] Add progress bar to user manual embeddings processing. --- profiler/src/profiler/TracyLlm.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index 9441f275..5cc0080c 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -104,6 +104,13 @@ void TracyLlm::Draw() DrawWaitingDots( s_time ); ImGui::TextUnformatted( "" ); ImGui::PopFont(); + const float w = 100 * scale; + const float ww = ImGui::GetWindowWidth(); + ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) ); + ImGui::SetCursorPosX( ( ww - w ) * 0.5f ); + ImGui::ProgressBar( manualEmbeddingsState.progress, ImVec2( w, 0 ), "" ); + ImGui::PopStyleVar(); + ImGui::Spacing(); char tmp[128]; snprintf( tmp, sizeof( tmp ), "Progress: %.1f%%", manualEmbeddingsState.progress * 100 ); TextCentered( tmp );