mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Update screen only when achievements notification is animating.
The NeedsUpdate() method will be useful in future.
This commit is contained in:
parent
3886111e70
commit
bf0226fb64
@ -1296,6 +1296,7 @@ static void DrawContents()
|
||||
{
|
||||
animProgress = std::min( animProgress + ImGui::GetIO().DeltaTime / 0.3f, 1.f );
|
||||
if( animProgress == 1 ) animStage = 2;
|
||||
tracy::s_wasActive = true;
|
||||
}
|
||||
else if( animStage == 3 )
|
||||
{
|
||||
@ -1305,6 +1306,7 @@ static void DrawContents()
|
||||
s_achievements.PopQueue();
|
||||
animStage = 0;
|
||||
}
|
||||
tracy::s_wasActive = true;
|
||||
}
|
||||
|
||||
ImGui::SetNextWindowPos( ImVec2( display_w - starSize.x - ImGui::GetStyle().WindowPadding.x * 1.5f - aSize * smoothstep( animProgress ), display_h - starSize.y * 2 - ImGui::GetStyle().WindowPadding.y * 2 ) );
|
||||
|
@ -26,7 +26,7 @@ void AchievementsMgr::PopQueue()
|
||||
|
||||
bool AchievementsMgr::NeedsUpdates() const
|
||||
{
|
||||
return !m_queue.empty();
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user