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

Fix physics timestep #469

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix physics timestep #469

wants to merge 2 commits into from

Conversation

bergice
Copy link
Contributor

@bergice bergice commented Jul 4, 2023

• Fixes physics ticks per second always running at 20 ticks per second
• Uses fixed timestep to avoid unpredictable physics stepping at variable updates

Note:

• Does not implement delta timer for other physics operations (velocity etc), so if creators change the physics rate, they have to change other things like movement speed etc.
• Resolves https://trello.com/c/AigAP26I/8792-fix-physics-updates-per-second-game-setting-not-actually-working

• Use fixed timestep to avoid unpredictable physics stepping at variable updates
Copy link
Contributor

@m0dE m0dE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs refactor

engine/core/TaroEngine.js Outdated Show resolved Hide resolved
engine/core/TaroEngine.js Outdated Show resolved Hide resolved
Avoid client crash if no physics is enabled
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.

None yet

2 participants