Jump to content

“getLastFrameDuration()” instead of FPS as target for scene optimization?


Recommended Posts

I’ve experienced a strange problem in Firefox where a BabylonJS program works fine at ≈60fps until suddenly this drops to ≈30fps. 

The app itself isn’t lagging. It seems to me that Firefox just decides, for whatever reason, to serve up the program at 30fps instead of 60fps.

A couple questions:

  • Is there any way to obtain what the browser and BabylonJS are targeting as a frame rate? This would help to narrow the source of the problem.
  • If an app is graphics intensive, as opposed to script intensive, could it be better to base scene optimizations off of getLastFrameDuration() or getRenderDuration()?
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...