-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Support custom AABBs within MultiMesh resources #79833
Conversation
1d13f11
to
ecd6f35
Compare
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.
Looks great! I think this also needs to be exposed to CPUParticles so that they can benefit from the change as well.
GPUParticles3D have a visibility_aabb property that maps onto particles_custom_aabb
. I think we can implement visibility aabb for CPUParticles as well so the API matches (we could also update the "convert to CPUParticles" code to keep the custom_aabb as well
ecd6f35
to
cde9d10
Compare
f78527c
to
5bc7e06
Compare
Thanks for the starting point! I added the |
Not sure why the godot-cpp test is failing with an insufficient storage error. Is it a problem with the workflow? Does it need to try running again? |
Yes, you need to rebase to get workflow changes that fixed that. |
5bc7e06
to
8d61adf
Compare
Okay thanks, just rebased and pushed 👍 |
b61b482
to
29b5cf2
Compare
29b5cf2
to
e442382
Compare
Just one final little change. We need to ensure that we aren't notifying dependencies that the AABB has changed when a custom AABB is being used:
This saves us having to do a bunch of updates in the RenderingServer |
b82e9cf
to
6131112
Compare
- Supporting custom AABB on the MultiMesh resource itself allows us to prevent costly runtime AABB recalculations. - Should also help improve CPU Particle performance.
- Improves performance by reducing time spent on AABB generation. - Also adds an option to generate the AABB manually in the CPUParticles3D dropdown.
6131112
to
ec6518d
Compare
Updated! |
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.
Looks great! Thanks for responding quickly to my feedback
Thanks! |
Done, see #89028 Also note this seems to be specific to mobile renderer with an imported mesh (which has me worried I've somehow made a borked cube and it's my fault lol). |
Fixes #79573