Search Unity

ScrollView & TextMeshProUGUI performance

Discussion in '2D' started by MartinAnd, Dec 4, 2019.

  1. MartinAnd

    MartinAnd

    Joined:
    Jan 11, 2018
    Posts:
    3
    Hello,

    In my App i have a MainMenu scene with one Canvas including a CanvasScaler.
    This Canvas contains 6 GameObject. Every Gameobject contains a ScrollView with a TextMeshProUGUI (incl. a Content Size Fitter) as Content. The Text in each TextMesh has about 13 000 Characters.

    All 6 GameObjects are set separately active through a ToggleGroup.

    But Switching between these GameObjects takes between 300 and 500ms. So it takes a noticeable amount of time between touching the Button and see the Text.
    This is unusable for navigating through an App.

    How can i improve the performance? What did i forget/miss?

    I am using Unity 2018.4.6f1.

    This is the Profile window:
    upload_2019-12-4_14-9-43.png

    Here with Deep Profile:
    upload_2019-12-4_14-18-32.png

    Also the GC Alloc with 110MB seems quiet high, only for Text...

    This is how the menu looks like:
    upload_2019-12-4_14-33-17.png

    Thanks in advance, for your help.

    Regards Martin
     
  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    1,489
    MartinAnd likes this.
  3. MartinAnd

    MartinAnd

    Joined:
    Jan 11, 2018
    Posts:
    3