-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Physics run way to fast on a really good gaming PC #1152
Comments
Are you using your own runner or the built-in MJS runner? A minimal example would be useful. |
So what to do with 144Hz? |
Fix fps / fix fast simulationEvents.on(runner, 'tick',() => {
runner.deltaMin = runner.fps > 60 ? 1000 / runner.fps : 1000 / 60;
}) I have been solving this problem for a long time. how to catch a bugchrome increases fps when you lose focus from the active taban example with the use of an official demo @liabru please add a fix to the runner code |
Hi everyone, I try with the code of @LexSerest above but it doesn't work?!. Has anyone found a way yet? |
@MinhChanh6 you missed the |
Closing this thread to refer to updates in #702 on this topic, thanks again for the reports here. |
I showed my cousin a game I made with Matter.js but his computer is so good the game runs like 3 to 4 times faster than it should and is impossible to play.
Is there a way to set an FPS limit?
The text was updated successfully, but these errors were encountered: