Top tag
Next privilege 125 Rep.
Vote down
~3k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
comment Frame-rate independent friction on movement in 2d game
I see. Then it's going to be hard to apply the answer I gave you if you have 2 framerates that can be in any ratio. You will always get different results when running at variable timesteps and non-constant forces. My advice is to run physics with a fixed time step on all machines, e.g. 16 ms for an average FPS of 60 and just ignore if they appear slowing down when the frame rate drops. Other options include doing a number of fixed timesteps per frame and then adapt this number and sync it with other machines - should be easier working with integers. Or work only with constant forces :)