Delta game loop

Recommended Posts

How many of you guys use delta in your game loops ? I've adapted my game loop to this: https://isaacsukin.com/news/2015/01/detailed-explanation-javascript-game-loops-and-timing

but the game I'm working on has no sense of gravity, and is a tile/grid based movement game, tl;dr everything can only move 32px.

What are the pros and cons of using delta? Do you use delta?

Share this post

Link to post
Share on other sites

Delta is great for consistency of the update method . You don't want your movement to be influenced by the framerate.

If I understand correctly you only need to use tweening for your movement, using delta is not needed because a tweening function should refere to the actual time and not the frame rate.

Share this post

Link to post
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.