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

Simplified and optimized vector and quaternion use in Anamnesis #1385

Merged

Conversation

ergoxiv
Copy link
Contributor

@ergoxiv ergoxiv commented Sep 4, 2024

Note: This pull request will be marked as draft until the changes in the XivToolsWpf library are reviewed and approved (Aether-Tools/AetherToolsWpf#2)


Proposed changes to Anamnesis' code to:

  • Reduce code duplication.
  • Make use of System.Numerics types, which offer hardware-accelerated computations (i.e. performance benefits).
    • The System.Numerics vector and quaternion are structs under the hood, so their default layout is sequential and will act the same way as the current custom implementations when it comes to reading from and writing to memory.
  • Fixed typo in library namespace.

@ergoxiv ergoxiv force-pushed the hotfix/vector-and-quaternion-extensions branch from 27d9205 to 96dff29 Compare September 8, 2024 16:24
@ergoxiv ergoxiv force-pushed the hotfix/vector-and-quaternion-extensions branch from 96dff29 to 2151ef3 Compare September 8, 2024 16:37
@StoiaCode
Copy link
Contributor

This should be ready to merge, right?

@ergoxiv
Copy link
Contributor Author

ergoxiv commented Sep 13, 2024

Yes, just needs a bump to the lib submodule. Ill push a new commit in a bit.

@ergoxiv ergoxiv marked this pull request as ready for review September 13, 2024 14:59
@ergoxiv
Copy link
Contributor Author

ergoxiv commented Sep 13, 2024

Done

@StoiaCode StoiaCode merged commit 01c21fd into imchillin:master Sep 13, 2024
@ergoxiv ergoxiv deleted the hotfix/vector-and-quaternion-extensions branch October 27, 2024 22:14
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.

2 participants