warpdesign Posted December 9, 2014 Share Posted December 9, 2014 Hi, I'm working on a simple 2D platform game. Right now, I have two loops: - the renderer loop that's using requestAnimationFrame - the game logic that handles objects move, collisions, etc.. into a separate loop (that's now using setTimeout) I'm wondering if this is the proper way to do it. I did it this way so that if the computer can't animate my app with 60fps, game is still responsive. Quote Link to comment Share on other sites More sharing options...
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.