Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Performance spike on adding an object in VeticalLayoutGroup

$
0
0
Hello there I'm making a chat that can has lots of messages inside and the container for these messages uses VerticalLayoutGroup.
As more messages in VLG as more CPU load on adding new message.
It seems that each time when I'm adding a new message into VLG it calculates something but for all messages and not only for new one.
So is there any way to fix it?

There is next hierarchy:

Canvas
-Scroll View
--Viewport
---Content (Vertical Layout Group, Content Size Fitter)
----Panel (Image) lots...

Performance spike on adding an object in VeticalLayoutGroup

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>