mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Mark activity when buzz anim is enabled.
This commit is contained in:
parent
6552108f52
commit
8117d7d4d4
@ -629,6 +629,7 @@ bool View::DrawImpl()
|
|||||||
}
|
}
|
||||||
|
|
||||||
const auto& io = ImGui::GetIO();
|
const auto& io = ImGui::GetIO();
|
||||||
|
m_wasActive = false;
|
||||||
|
|
||||||
assert( m_shortcut == ShortcutAction::None );
|
assert( m_shortcut == ShortcutAction::None );
|
||||||
if( io.KeyCtrl )
|
if( io.KeyCtrl )
|
||||||
@ -1069,14 +1070,14 @@ bool View::DrawImpl()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_callstackBuzzAnim.Update( io.DeltaTime );
|
m_wasActive |= m_callstackBuzzAnim.Update( io.DeltaTime );
|
||||||
m_sampleParentBuzzAnim.Update( io.DeltaTime );
|
m_wasActive |= m_sampleParentBuzzAnim.Update( io.DeltaTime );
|
||||||
m_callstackTreeBuzzAnim.Update( io.DeltaTime );
|
m_wasActive |= m_callstackTreeBuzzAnim.Update( io.DeltaTime );
|
||||||
m_zoneinfoBuzzAnim.Update( io.DeltaTime );
|
m_wasActive |= m_zoneinfoBuzzAnim.Update( io.DeltaTime );
|
||||||
m_findZoneBuzzAnim.Update( io.DeltaTime );
|
m_wasActive |= m_findZoneBuzzAnim.Update( io.DeltaTime );
|
||||||
m_optionsLockBuzzAnim.Update( io.DeltaTime );
|
m_wasActive |= m_optionsLockBuzzAnim.Update( io.DeltaTime );
|
||||||
m_lockInfoAnim.Update( io.DeltaTime );
|
m_wasActive |= m_lockInfoAnim.Update( io.DeltaTime );
|
||||||
m_statBuzzAnim.Update( io.DeltaTime );
|
m_wasActive |= m_statBuzzAnim.Update( io.DeltaTime );
|
||||||
|
|
||||||
if( m_firstFrame )
|
if( m_firstFrame )
|
||||||
{
|
{
|
||||||
@ -1290,7 +1291,8 @@ void View::HighlightThread( uint64_t thread )
|
|||||||
|
|
||||||
bool View::WasActive() const
|
bool View::WasActive() const
|
||||||
{
|
{
|
||||||
return m_zoomAnim.active ||
|
return m_wasActive ||
|
||||||
|
m_zoomAnim.active ||
|
||||||
m_notificationTime > 0 ||
|
m_notificationTime > 0 ||
|
||||||
m_worker.IsConnected() ||
|
m_worker.IsConnected() ||
|
||||||
!m_worker.IsBackgroundDone();
|
!m_worker.IsBackgroundDone();
|
||||||
|
@ -555,6 +555,7 @@ private:
|
|||||||
std::vector<std::unique_ptr<Annotation>> m_annotations;
|
std::vector<std::unique_ptr<Annotation>> m_annotations;
|
||||||
UserData m_userData;
|
UserData m_userData;
|
||||||
|
|
||||||
|
bool m_wasActive = false;
|
||||||
bool m_reconnectRequested = false;
|
bool m_reconnectRequested = false;
|
||||||
bool m_firstFrame = true;
|
bool m_firstFrame = true;
|
||||||
std::chrono::time_point<std::chrono::high_resolution_clock> m_firstFrameTime;
|
std::chrono::time_point<std::chrono::high_resolution_clock> m_firstFrameTime;
|
||||||
|
Loading…
Reference in New Issue
Block a user