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 usage of Transform::xform and unit tests #50611

Closed
wants to merge 2 commits into from

Conversation

lawnjelly
Copy link
Member

@lawnjelly lawnjelly commented Jul 19, 2021

With the change to safer slower versions of the Transform::xform and xform_inv functions, this PR goes through the engine to make better use of fast versions of the functions so as not to reduce performance.

Also adds some unit tests for Transform.

Notes

  • This is dependent on Make Transform::xform functions safe with non-uniform scaling #50549 which should be merged first, then I can rebase this PR.
  • The unit tests are very basic but should get us started for Transform, which has no tests. In particular it tests non-uniform scales.
  • The optimized versions in the physics using fast xform for planes should be faster and more accurate.

This fixes the xform functions, and introduces unsafe function versions for the old behaviour.
With the change to safer slower versions of the Transform::xform and xform_inv functions, this PR goes through the engine to make better use of fast versions of the functions so as not to reduce performance.

Also adds some unit tests for Transform.
@lawnjelly
Copy link
Member Author

Closing this in favour of #50637 which is a more cut down approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants