koochi10 Posted July 6, 2017 Share Posted July 6, 2017 Hey guys sorry if this is a noob question I am new to pixi js and game development. I am trying to split up my game logic and animations into two different tickers. I want my animations to run at 60fps where my game logic can run at around 15 fps. I was wondering if there was a way to slow down the ticking rate of the tickers in order to achieve this affect. Thanks! Taz 1 Quote Link to comment Share on other sites More sharing options...
xerver Posted July 7, 2017 Share Posted July 7, 2017 Simply use setTimeout (or setInterval) with the delay you want for your game loop. Starting there you can add other things you will need (delta tracking to get as close to 15 FPS as possible, pausing when leaving the tab, etc). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.