-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Fast renormalize #14316
Fast renormalize #14316
Conversation
…ions for round shapes.
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.
Good docs and unit tests check out. I have one non-blocking nit, but beyond that it looks good!
Co-authored-by: BD103 <59022059+BD103@users.noreply.github.com>
Oops, I accidentally though that @Jondolf's review was an approval. Marking this as |
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.
Left some documentation improvement suggestions, but nothing blocking :)
Courtesy of @janhohenheim Co-authored-by: Jan Hohenheim <jan@hohenheim.ch>
@janhohenheim Great suggestions, thanks a bunch. |
Looks like they had some syntax errors, sorry about that 😅 |
We gotta keep the CI on its toes somehow, right? |
ah... are these the infamous doctests I've heard of? How do I fix this CI failure? |
🎉 |
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.
LGTM! Adding a similar method for quaternions would be nice, but we can do that later, either by adding it to Glam directly or by using an extension trait.
Added an issue for this to |
Co-authored-by: Joona Aalto <jondolf.dev@gmail.com>
I ran benchmarks for this and wrote about them in bitshifter/glam-rs#540 (comment). The speed change, while an improvement, is only in a few picoseconds. This is desirable for hot code, but may not be worth upstreaming. |
I wonder if the performance improvement would be larger when the |
I'm not sure how to do that myself, but feel free to try it! This is the code that I used to benchmark. |
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.
Neat! Hadn't thought about it like this before, but makes sense.
Thank you to everyone involved with the authoring or reviewing of this PR! This work is relatively important and needs release notes! Head over to bevyengine/bevy-website#1664 if you'd like to help out. |
Objective
Solution
Testing