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

Optimise fastcos/fastsin in particle engine. #20

Open
bil-bas opened this issue May 12, 2013 · 0 comments
Open

Optimise fastcos/fastsin in particle engine. #20

bil-bas opened this issue May 12, 2013 · 0 comments
Assignees

Comments

@bil-bas
Copy link
Collaborator

bil-bas commented May 12, 2013

Suggested by ker:

modulo is bad, rather use two while loops, one for <0 to += 360 and one for >360 to -= 360
especially modf is bad
convert to integer, the do the loops in integer
saves you both modf and %

@ghost ghost assigned bil-bas May 12, 2013
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

No branches or pull requests

1 participant