1
0
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:
Bartosz Taudul 2024-06-06 18:10:23 +02:00
parent 3886111e70
commit bf0226fb64
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 3 additions and 1 deletions

View File

@ -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 ) );

View File

@ -26,7 +26,7 @@ void AchievementsMgr::PopQueue()
bool AchievementsMgr::NeedsUpdates() const
{
return !m_queue.empty();
return false;
}
}