koochi10

low fps ticker

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.