Isn't it overkill to update all canvases when updating a scroll rect?

Hi all,

We are currently eliminating lag spikes in our applications, and we discovered, from the UI Source Code, that upon updating the ScrollRect with content, it executes Canvas.ForceUpdateCanvases(), which creates spikes for us. Is it necessary to update all canvases when an scroll rect updates? Wouldn’t it suffice to just update the Layout for the ScrollRect using LayoutRebuilder.ForceRebuildLayoutImmediate (scrollRect)?

1 Like

i think they talk about it in this video, cant remember if there was solutions for that…