max123

Misleading engine.fps framerate

Recommended Posts

Hi,

How can I reliably read running scene's framerate?

When I output to console values of engine.fps, it gives me heartwarming 59-60fps. However, visually my Babylon app runs at 7-8fps at most!
Where's the catch?

The reason I need this is to disable certain features if framerate drops below 30fps for like 5-10 ticks. 

Or is there a better way to detect slower devices?

Cheers

Edited by max123

Share this post


Link to post
Share on other sites

@Hersir, yep, I'm aware of Scene Optimizer but will need more control (e.i. dispose some meshes or disable certain effects if needed).

@adam, yep, that's essentially what I'm using at the moment, minus the .toFixed() bit - makes no difference. 

 

Share this post


Link to post
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.

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

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.