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

Scroll Rect is TOOO SLOW

Discussion in 'UGUI & TextMesh Pro' started by CircusCharlie, Apr 7, 2016.

  1. douglasg14b

    douglasg14b

    Joined:
    Oct 2, 2014
    Posts:
    34
    Simply switching from Mask to RectMask2d took me from 50fps idle, and ~15fps scrolling to 590fps idle and 70FPS scrolling.

    Using TextMeshPro for all text elements.

    Rapidly scrolling large lists is still a significant issue on mobile though, and causes significant stuttering even in high-end phones. Nothing runs on `Update()` either, the entire list is static.

    If I have lists of 100+ items, scrolling is back down to 10-20fps or worse.
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,146
    There are several solutions that work with object pooling instead of populating the entire list. You should look into one of those if you have a huge list of items.
     
  3. TheObliviously

    TheObliviously

    Joined:
    Sep 18, 2020
    Posts:
    1
    OmarVector likes this.
  4. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,593
    I have a project which is very similar, many scrollviews in one big scrollview, in unity it runs at 650fps. But my client says on his mac in WebGL its around 2fps (LOL). Webgl on pc is still lightning fast. I will try all the things mentioned here, but if anyone at unity wants the project to test I can send. The reason I say this is because it seems WebGL runs VERY VERY badly on Macs quite often (nearly always the mac book pro? might be a coincidence but I hear it has a poor gpu). Funny thing is people report no performance issues on my fully fledged online webgl game, so seems to be UI.
     
  5. OmarVector

    OmarVector

    Joined:
    Apr 18, 2018
    Posts:
    117
    That was exactly my case, thanks for sharing