Jump to content

New to Phaser...barely anything happening but having performance issues?


Recommended Posts

Seems perfectly smooth in Safari. I checked your source files, and it looks fine. The only thing that could cause something like that might be where you multiply with physicsElapsed, which is a good practice as it ensures same speed at all frame rates, but I'm not sure physics time updates at the same rate as the frame rate since 2.2.0. It might be 0 at some frames, then 0.016 at others or even more. Physics might be running at half that of the update loop, and they run in different threads even, I believe, so if they don't match you may seem some stepping.


As this has all changed in 2.2.0+ I cannot tell you exactly what is going on, but try looking in the timer class for something else that physicsElapsed, or create your own timer for each "flame" and see how long has passed since last update.


Borderline: Don't count on physicsElapsed for things that does not have to do with the physics systems, it's implementation might change from version to version.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...