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

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.