A
A
Alexander2018-05-11 10:58:31
User interface
Alexander, 2018-05-11 10:58:31

UI optimization in Unity3D?

There is a Scroll View on the stage, it has up to 100 elements, each element has one image and four texts.
As far as I noticed from the profiler, there are strong drops in FPS in the scroll view due to elements
. I use images from the atlas, there are no particular problems with them, but I don’t know what to do with the text, I
also use Rect Mask2D, and I also noticed that with a mask when scrolling, there are changes in batches, I think this is also not very good, if you scroll without a mask, then I
don’t know how to express stable FPS, once again the questions:
1. Is it possible to somehow optimize this scroll view?
2. Is there any replacement for this mask, or can it be optimized somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2018-05-11
@zernvaka

As for the second: RectMask2D is already less optimal - you won't get much gain there already.
As for the second: 100 elements will slow down. It is necessary to make fewer elements so that there is a minimum of invisible ones - transfer from top to bottom and vice versa when paging. Or you can decide more radically at the UX level - not to make a scroll list, but to do pagination.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question