-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Calculate AABBs to enable text2d culling #11663
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
Conversation
bf105ff to
fc7bac5
Compare
fc7bac5 to
c2a9ef2
Compare
c2a9ef2 to
1f7a584
Compare
fbf374e to
86b2f17
Compare
| half_extents, | ||
| }; | ||
| } else { | ||
| commands.entity(entity).try_insert(Aabb { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be insert instead since we know that we don't have the component available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't swap to insert here: if the entity is suddenly despawned we don't want a panic.
Objective
Text2doptimization (culling/batching) #11081.Solution
Text2DBundleto enable culling them.text2dexample with AABB gizmos on the text entities:culltext2d-2024-02-02_12.13.02.mp4
Changelog
Added
calculate_bounds_text2dsystem adding the necessary AABBs.