I want to include a few "bells and whistles" features on a site I'm currently developing, but I don't want to bog down the entire machine for my users. Is there a way I can test to see if the current browser is GPU accelerated?
I could just check against UserAgents, but I've always heard it's not accurate enough to trust.
I guess I could build a canvas element, make quite a few drawing calls, and time them? Anything under a certain threshold I could consider good enough for my superfluous extras? Would this be good enough?
Google Chrome comes equipped with hardware acceleration, a feature which takes advantage of your computer's GPU to speed up processes and free vital CPU time. However, sometimes driver incompatibilities can cause this feature to misbehave and disabling it could save you a few headaches.
The easiest way to know if you have hardware acceleration is through Chrome browser. Type in chrome://gpu to your address bar. If you see Hardware-accelerated next to most of the options here, you already have it enabled.
Show activity on this post. If you press Shift + Esc while in the browser it will bring up Google Chrome's internal Task Manager. If there is a process titled GPU Process, then that means Chrome is using hardware/GPU acceleration in order to display/render a particular page. Show activity on this post.
Why does it matter if its GPU accelerated? The only thing that should matter is performance.
So timing the canvas element is the better choice even if you could find out if there is GPU acceleration or not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With