Dealing with the one frame lag when visualising dynamic bodies

If it possible to add post_update function for scripts, it can solve physics-render lag:

scripts (update), physics, scripts (post update), sprite, render

Other game engines have similar behaviors:

  • Unity - MonoBehavior has “LateUpdate” in
  • Phaser - Game Object has “postUpdate”
  • Game Maker - “end step” event
    etc…
2 Likes