How to check if hardware acceleration is enabled?

We had this case recently where a client had hardware acceleration disabled on his browser? Understandably Babylon.js scene render was very slow.

How could we check that it is enabled and show a message like “please, enable hardware acceleration”?

I don’t think it’s possible because Modernizr said it’s an Undetectable feature Undetectables · Modernizr/Modernizr Wiki · GitHub.

You could write some hardware accelerated code and test the duration but I don’t think it’s a good solution…Maybe your client just want to annoy you :face_with_monocle: !

I’ve got projects with 35k hits / month I never heard about something like that :slight_smile:

Aaa, those clients :).

Thanks @sharp. It is actually true that this is the second time I encounter the issue for the last several years. The moment I got the message “wow this is slow” I new exactly what the problem was, but the client had no memory of every turning the chrome hardware acceleration of on his windows machine.

I didn’t know it was possible to make babylon rendering without hardware accelerated enabled :rofl:

One thing we did for a project was to listen to the FPS and if it drops under 15 we show a dialog to contact us to find some reason why the rendering is slow…When the dialog is shown you stop the current rendering and make some basic tests (cube rendering for example) and automatically send the results of tests within the message.

It’s not a good solution but some clients want this feature…