mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-31 07:28:32 +00:00
Prevent in-flight query notification flicker.
This commit is contained in:
@@ -641,6 +641,7 @@ private:
|
||||
AttentionCallback m_acb;
|
||||
|
||||
float m_notificationTime = 0;
|
||||
float m_sendInFlightTime = 0;
|
||||
std::string m_notificationText;
|
||||
|
||||
bool m_groupCallstackTreeByNameBottomUp = true;
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user