Jump to content

Phaser Physics loop.


tips4design
 Share

Recommended Posts

I have a question regarding the collision checking done by Phaser (Physics.Arcade). Are the rendering and physics checking done every frame simultaneously?

 

I ask because I hope Phaser runs the physics at constant FPS, even though the rendering FPS drops (so the two loops are not linked together, eg: there could be multiple world updates within a single render frame)

Link to comment
Share on other sites

Ok, thank you. That's what I wanted to know, if physics loop is independent from the rendering loop. Another question is that if you start the SAME simulation on two different devices, that have different hardware specs (eg: one runs at 60fps and the other at 20fps) , will the result of that simulation be EXACTLY the same? I don't need the simulation to end at the same time (one can become laggy) but I want them to be eaxctly the same (the end position of all elements to be identical in both simulations). Does Physics.Arcade guarantee this?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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