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

Add some micro-optimizations to IntersectsSphere #4213

Conversation

FlaggAC
Copy link
Contributor

@FlaggAC FlaggAC commented Aug 11, 2024

Using the local variables when possible can simplify the branching optimization and fetch operations. This method is called very frequently, so even a small change can have an impact here. The positive effect of using local variables is non-zero even with the assumption that optimizations and CPU caching are under ideal conditions.

This method is called very frequently.
@FlaggAC
Copy link
Contributor Author

FlaggAC commented Aug 12, 2024

This is probably not going to be helpful (maybe in Debug builds, which ACE mods tend to go with for some reason). Closing for now.

@FlaggAC FlaggAC closed this Aug 12, 2024
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.

1 participant