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

Performance: move the bailout threshold to 60fps instead of 30fps #60

Merged
merged 1 commit into from
Dec 24, 2020

Conversation

marcofugaro
Copy link
Member

After doing some tests, it made more sense to keep the threshold at which we skip to the next internalStep at 60fps, since it dips anyway to much lower than 60fps sometimes.

It was originally like this:
https://github.com/schteppe/cannon.js/blob/2cd242e696cd37b67a5722000abaf3edeef1d29a/src/world/World.js#L506-L509

@marcofugaro marcofugaro merged commit 65a7391 into master Dec 24, 2020
@marcofugaro marcofugaro deleted the performance-adjustement branch December 24, 2020 19:31
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