mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-19 14:03:47 -07:00
animationmanager: optimize avar state
This commit is contained in:
@@ -61,7 +61,8 @@ void CAnimationManager::tick() {
|
||||
for (auto& av : m_lAnimatedVariables) {
|
||||
|
||||
// first of all, check if we need to update it at all
|
||||
if (!av->isBeingAnimated())
|
||||
// TODO: this has a 100% cache miss rate, maybe move active avars to a separate vec
|
||||
if (!av->m_bIsBeingAnimated)
|
||||
continue;
|
||||
|
||||
if (av->m_eDamagePolicy == AVARDAMAGE_SHADOW && !*PSHADOWSENABLED) {
|
||||
|
Reference in New Issue
Block a user