feathersui-openfl
feathersui-openfl copied to clipboard
Added code that makes LayoutViewPort offscreen rendering optional
In my testing, huge scroll containers get huge performance gains!
This feature should be integrated into openfl.
Per our discussion, BaseScrollContainer has a scrollMode property that can use scrollRect, mask, and no masking. Even if OpenFL optimized its scrollRect implementation, this feature would still be useful for the other scroll modes.
Looks good to me. I might make a few very minor code style tweaks after merging, but otherwise, everything is good. Added to v1.1 milestone.
Oh wait, not good yet. Flash builds are still failing because you are referencing __children, which is an OpenFL private API. Please use items instead. That's defined in LayoutGroup, so it will be safe everywhere.