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

Improve Sphere stack usage #4112

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Conversation

Mag-nus
Copy link
Member

@Mag-nus Mag-nus commented Feb 18, 2024

Several of the functions in Sphere take parameters that were not used. This PR creates overloads that retain the existing signatures, marks them obsolete, and removes the unused parameters from the core function.

GetHashCode is optimized

FindTimeOfCollision is marked Static

Several of the functions in Sphere take parameters that were not used.
This PR creates overloads that retain the existing signatures, marks them obsolete, and removes the unused parameters from the core function.

GetHashCode is optimized

FindTimeOfCollision is marked Static
@Mag-nus Mag-nus requested a review from gmriggs February 18, 2024 16:29
@Mag-nus
Copy link
Member Author

Mag-nus commented Feb 18, 2024

Note, this maintains backwards compatibility with 3rd party users

@Mag-nus Mag-nus merged commit b674838 into ACEmulator:master Mar 13, 2024
2 checks passed
@Mag-nus Mag-nus deleted the ImproveSphereStack branch March 13, 2024 02:40
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