From db8bfc9ba97dfde997b26eb6e7db780bd85ba1db Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 7 May 2026 22:34:48 +0200 Subject: [PATCH] Prevent in-flight query notification flicker. --- profiler/src/profiler/TracyView.hpp | 1 + profiler/src/profiler/TracyView_NotificationArea.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView.hpp b/profiler/src/profiler/TracyView.hpp index 6c321982..b6b5a9cb 100644 --- a/profiler/src/profiler/TracyView.hpp +++ b/profiler/src/profiler/TracyView.hpp @@ -641,6 +641,7 @@ private: AttentionCallback m_acb; float m_notificationTime = 0; + float m_sendInFlightTime = 0; std::string m_notificationText; bool m_groupCallstackTreeByNameBottomUp = true; diff --git a/profiler/src/profiler/TracyView_NotificationArea.cpp b/profiler/src/profiler/TracyView_NotificationArea.cpp index 8cbb7617..01de8864 100644 --- a/profiler/src/profiler/TracyView_NotificationArea.cpp +++ b/profiler/src/profiler/TracyView_NotificationArea.cpp @@ -54,7 +54,8 @@ void View::DrawNotificationArea() else { const auto sif = m_worker.GetSendInFlight(); - if( sif != 0 ) + if( sif != 0 ) m_sendInFlightTime = s_time; + if( s_time - m_sendInFlightTime < 0.1f ) { ImGui::SameLine(); TextColoredUnformatted( ImVec4( 1, 0.75f, 0, 1 ), ICON_FA_SATELLITE_DISH );