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

Game loop runs slow when setTimeout() is used #687

Closed
samme opened this issue Mar 18, 2021 · 1 comment
Closed

Game loop runs slow when setTimeout() is used #687

samme opened this issue Mar 18, 2021 · 1 comment
Labels
Milestone

Comments

@samme
Copy link
Collaborator

samme commented Mar 18, 2021

When using setTimeout(), the game loop runs slower than intended. timeToCall is incorrect.

fps: 51; desiredFps: 60; timeToCall: 18; elapsed: 20

  • A bug in the API:
    • Phaser version(s): 2.16.2 and earlier
@samme samme added the bug label Mar 18, 2021
@samme samme added this to the v2.17.0 milestone Mar 18, 2021
@samme
Copy link
Collaborator Author

samme commented Mar 18, 2021

@samme samme closed this as completed Mar 18, 2021
samme added a commit that referenced this issue Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant