Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize removeChild #1093

Merged
merged 1 commit into from
Jan 14, 2022
Merged

Conversation

HaimZik
Copy link
Contributor

@HaimZik HaimZik commented Jan 14, 2022

Prevent RemoveChild needlessly doing indexOf.
This was causing O(n log n) behavior in the case of removing all children.
Fix short black screen at the end of Starling demo benchmark for large amount of Images.

@PrimaryFeather PrimaryFeather merged commit 1315a07 into Gamua:master Jan 14, 2022
@PrimaryFeather
Copy link
Contributor

Thanks a lot, a very useful optimization! 👍

@HaimZik HaimZik deleted the optimizeRemoveChild branch January 14, 2022 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants