Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scene2d.ui] Tree is more efficient when it has many nodes.
For culling, node actors are stored as children of the tree in the order they are visible. We can use that to make assumptions on the node actor indices to minimize calls to Actor#getZIndex (which is a linear search).
- Loading branch information
1 parent
3e20c26
commit 78ec523
Showing
2 changed files
with
79 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters