Optimization Fields |
The BaseParamsOptimization type exposes the following members.
| Name | Description | |
|---|---|---|
| forceLayoutRebuildOnBeginSmoothScroll | Disable only if you see FPS drops when calling SmoothScrollTo(Int32, Single, Single, Single, FuncSingle, Boolean, Action, Boolean) | |
| forceLayoutRebuildOnDrag |
Enable only if you experience issues with misaligned items. If OSA is correctly implemented, this shouldn't happen (please report if you find otherwise).
However, we still provide this property if you want a quick fix
| |
| recycleBinCapacity | How much objects besides the visible ones to keep in memory at max, besides the visible ones By default, no more than the heuristically found "ideal" number of items will be held in memory Set to a positive integer to limit it - Not recommended, unless you're OK with more GC calls (i.e. occasional FPS hiccups) in favor of using less RAM | |
| scaleToZeroInsteadOfDisable |
Enables ability to scale out-of-view objects to zero instead of de-activating them,
since GameObject.SetActive is slightly more expensive to call each frame (especially when scrolling via the scrollbar).
This is not a major speed improvement, but rather a slight memory improvement.
It's recommended to use this option if your game/business logic doesn't require the game objects to be de-activated.
|