Sign in to follow this  
0l4f

Testing user's graphic performance

Recommended Posts

Hello all!

I'm currently working on a website that has a Babylon.js scene as it's background, and also includes a game created with Babylon.js.

I'm trying to keep the scene as simple as possible - I'm only using planes and their clones - and I'm testing on a 2013 ASUS laptop where I'm getting constant 60FPS.

But of course, there are users out there with lower graphics performance, and I'm trying to find a way to test and handle that.

In my current setup, I monitor the FPS in the first ten seconds, and if it averages under 45FPS, I call scene.dispose(); and set a cookie so the scene won't be loaded next time.

 

Is there a better way to do this?

 

Thanks in advance!

BTW, here a video of the submarine-themed game in progress :) :

 

Share this post


Link to post
Share on other sites

Hello

first I have to say that I like your game design! simple and efficient

Regarding performance testing, this is a tough topic. Instead of disposing the scene you can first try to reduce complexity by playing with scene.setHardwareScaling to change the number of pixels actually drawn:

Example here for the Ruins demo: https://github.com/BabylonJS/Website/blob/master/Demos/Ruins/demo.js#L79

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.