Tableuraz Posted November 19, 2016 Share Posted November 19, 2016 Hi, I am having an issue with latest version of BabylonJS (beta version), when loading a page with clean cache the FPS displayed by getFPS stays at 60 fps during 58 frames (seems a constant), meaning that the sceneOptimizers can't get triggered if the FPS is too low (timer gets to 0 before being able to run the optimizer). Quote Link to comment Share on other sites More sharing options...
Tableuraz Posted November 19, 2016 Author Share Posted November 19, 2016 The temporary workaround for this issue is to count the first frames and wait until 58 frames were rendered and THEN apply optimizers, that or measure FPS yourself with framerate estimation based on the time elapsed since last frame. (less precise but allows to measure FPS as soon as 2 frames were rendered) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 21, 2016 Share Posted November 21, 2016 The thing is that the fps can only be evaluated after 1 full second (so 55~60 frames) Before triggering the sceneOptimizer I would recommend to wait for a few seconds (to let the shaders be compiled for instance) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.