UpdateUILayouts gives huge performance impact

Resizing/Tweening the UI element using UIScale the UIListLayout is being recalculated multiple times. Giving me huge performance impact. The hierarchy of the elements are not that deep, although some elements specially the text has a AutomaticSize enabled on the X axis.

This is the hierarchy elements:

The button is being animated using the UIScale at run-time and the ItemTemplate Frame is parented to a Scrolling Frame.
Here’s a video showing how the UI behaves.
When removing the UIScale Tweens, Opening items does still produce lag when MoreInfo ui element is tweened to open/close.
Hierarchy of the MoreInfo:

Here’s the video with UIScale Tweening:

Here’s the video with only tweening the MoreInfo Element:

Here’s a screenshot of the micro profiler.




System Specs:
Amd Ryzen 7 5700X3D 3.0GHz 8 Cores
RTX 3070TI
32 GB RAM DDR4 3200Mhz
Windows 11

2 Likes

Thanks for reporting! This is unfortunately a limitation of our current layout system as tweens/resizing will cause relayouts even though it is only a relative transformation on the UI. We will close this bug and file this as a feature request instead.

1 Like