Jump to content

Is it possible to cap the render frame rate to 50 fps ?


Recommended Posts

in the dev branch i found this new feature to cap the physics update rate (desiredFPS)  very useful..  50fps for example are definitely enough for me - 40fps would still do it .. i would have to adjust my game environment a little bit but thats it..   


if 40fps is enough for my physics calculations why waste another 20fps on rendering the whole thing? as far as i understand with a framerate of 60fps all my scripting stuff has something around 16ms to do everything..


with 30fps it would be 32ms ..  this would definitely avoid lags so im curious..  please correct me if i'm wrong !



how could i limit the maximum rendered frames in phaser/pixi ? 

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...

now this issue became even more important to me..  i am moving some of my objects 10px every frame..


 if the gamer has a 100hz display the game would probably run at 100fps ..   and therfore close to twice as fast...  i could bind the movement to a specific time frame but if there was a way to just say to phaser..  "don't you ever render more than 60fps"   it would be nice.  is there a way ???

Link to comment
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.
  • Create New...