Hello,
We are currently evaluating NGUI, in order to replace our old UI system. On several locations in the UI, we have scroll views with grids, which can contain dozens of child items - like player inventory items, shop, etc.. These items can be prefabs, made of several labels, progress bars, sprite(s).
When we add 30 of these items, using NGUITools.AddChild, there is almost 200ms spike in the Profiler.
After adding them, when just deactivate/activate the scroll view, the spike is like 50-60ms, which is also not quite acceptable.
It is a powerful Itel I7 PC, the tests are being made on.
These spikes are alike even when attaching the items to an empty scene UIRoot directly - no scroll view/grid at all.
When instantiating a simple prefab with just 1 sprite, the UICamera.Update+UIRect.Start spike is around 15ms. The complex prefab has 7 labels, 1 background sprite, 1 texture, 4 progress bars in it, and Math proves the problem does not seem to be in the complex prefab.
Am i doing something wrong, and if not, what is the strategy for dealing with such scenarios - paging or lazy instantiate of some sort?
NGUI version 3.5.3 btw.
Thank you!