Jump to content

Device feature detection and graceful degradation


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
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.

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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...