mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
59acb38951
When profiling gnome-shell it was found that one of the main triggers of `clutter_actor_queue_relayout` during animations was `clutter_actor_set_margin_internal` continuously setting the same zero margins. That's obviously pointless but also expensive since it incurs full stage relayouts and reallocation. So just avoid redundant margin changes. Helps to further improve: https://gitlab.gnome.org/GNOME/mutter/issues/233, https://gitlab.gnome.org/GNOME/gnome-shell/issues/349