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

Note Direction Math Optimization #14987

Open
wants to merge 3 commits into
base: experimental
Choose a base branch
from

Conversation

TheoDevelops
Copy link
Contributor

The followStrum function in Note.hx uses sin and cos funcions to change the incoming angle of the notes.
That's good but the function calls those math functions and its a bit bad, so, instead of doing that, when direction variable change its value, caches the sin and cos of the angle, and the followStrum function uses it to prevent calling those functions every frame.

@HaydenGamingBack
Copy link

interesting

@Sword352
Copy link
Contributor

I don't think it matters much, they're fast to compute already

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.

3 participants