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 various things #334

Merged
merged 2 commits into from
Jun 22, 2024
Merged

Optimize various things #334

merged 2 commits into from
Jun 22, 2024

Conversation

0x000006
Copy link
Contributor

Optimizations:

  • Math.PI + Math.PI -> Math.PI_TIMES_2
  • multiply with inverse numbers instead of dividing (excl. single-use scenarios)
  • move some calculations outside of loops

In the future I'm planning to do optimization with fma too, but currently i don't have the time for that.

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