0l4f Posted February 23, 2017 Share Posted February 23, 2017 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 : jerome 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 23, 2017 Share Posted February 23, 2017 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 Quote Link to comment Share on other sites More sharing options...
0l4f Posted February 23, 2017 Author Share Posted February 23, 2017 Hey @Deltakosh, thanks for the compliment ...and that is a great piece of code, thanks for the tips! 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.