bbmario Posted June 8, 2016 Share Posted June 8, 2016 How can we detect device features in Babylon.js in order to graceful degrade our content? For example, on a powerful PC, i might want to use highly detailed shadowmapping and normals/specular materials, but on a low-end PC or mobile, i might want to disable that. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 8, 2016 Share Posted June 8, 2016 http://www.html5gamedevs.com/topic/19721-detection-of-mobile/#comment-111776 Quote Link to comment Share on other sites More sharing options...
bbmario Posted June 8, 2016 Author Share Posted June 8, 2016 I'm not talking about mobile. I'm talking about devices. That means desktop, mobile, whatever. Is that device able to render normal maps efficiently? Is it capable of extension A, B or C? etc. Quote Link to comment Share on other sites More sharing options...
Kesshi Posted June 8, 2016 Share Posted June 8, 2016 You can check Engine.getCaps(). There you get some information about the hardware capabilities. see: http://doc.babylonjs.com/classes/2.4/EngineCapabilities But this will not give you information about the performance of a device. Many devices support all features but are actually very slow. The best thing would be that you enable/disable effects like shadows automatically depending on the current FPS. Or you do the same thing like most of the computer games. Add a graphics option dialog to your app. 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.