We often experience choppy graphics performance in almost any chromium based browser like Chrome, Chromium, Opera or Slimjet. Screen tearing and some dark flickers clearly visible when the browser window is opened, maximized or resized even using a compositing window manager.
Recently I faced a more saver graphics related issue with Opera 34, which is built on top of Chromium 47.
with lots of error log, saying [0114/201913:ERROR:gles2_cmd_decoder_autogen.h(145)] : [.Compositor-0x2d881636c000]GL ERROR :GL_INVALID_ENUM : glBindTexture: target was GL_FALSE.
Clearly it was graphics related issue, enabling hardware acceleration solved this problem.
Hardware acceleration in a web browser means using the graphics card to render the content, it significantly reduces the CPU workload while displaying graphics intensive content like HTML5 canvas.
How to check browser hardware acceleration enabled or not
If fairly easy to check it, just type some specific URL in the browsers address bar,
- Check Chromium hardware acceleration > chrome://gpu
- Check Google Chrome hardware acceleration > chrome://gpu
- Check hardware acceleration in Opera > opera://gpu
- Check hardware acceleration in Slimjet > slimjet://gpu
Here is an screenshot of google-chrome’s hardware acceleration not fully enabled.
How to enable hardware acceleration in chrome like browsers
Open up the browser and type chrome://flags in the URL bar to edit the launch time command line arguments.
- Find Override software rendering list and change it’s value to Enable from Disable .
- find Enable GPU rasterization then set it to Enabled from Default .
That’s it, now relaunch the browser and check hardware acceleration support by going to the chrome://gpu URL.
Testing hardware accelerated canvas
Test some hardware accelerated HTML5 canvas example in the links bellow. Or try some 1080p HD video on youtube.
CPU usage could be monitored by top, htop or any other GUI task manager like lxtask.
I tested it only on Archlinux and Debian testing, this guide should be similar for any OS or any distribution. So enjoy hardware accelerated browsing 🙂 .