dannyko / gpdk

GAMEPREZ Developer Kit
Other
17 stars 4 forks source link

variable timestep for physics engine #17

Closed dannyko closed 10 years ago

dannyko commented 10 years ago

adjust physics timestep to account for variable framerates e.g.

http://gameprogrammingpatterns.com/game-loop.html

https://hacks.mozilla.org/2013/11/the-pond-building-a-multi-platform-html5-game/?utm_source=html5weekly&utm_medium=email

dannyko commented 10 years ago

using elastic timestep and running physics engine at 4x animation rate (240 fps)