Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Performance spike on adding an object in VeticalLayoutGroup

Discussion in 'UGUI & TextMesh Pro' started by FakiNyan, May 24, 2016.

  1. FakiNyan

    FakiNyan

    Joined:
    Mar 4, 2015
    Posts:
    4
    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 of panels like this

     
  2. FakiNyan

    FakiNyan

    Joined:
    Mar 4, 2015
    Posts:
    4
    is it a bug or a normal behaviour?
    should I write my own analog of VerticalLayoutGroup?