Skip to content

How to use OpenGL or ANGLE rendering on Windows

alteredq edited this page Dec 8, 2012 · 1 revision

#How to use OpenGL or ANGLE rendering on Windows?

On Windows by default both Chrome and Firefox use ANGLE based rendering backend.

ANGLE is a translation layer between OpenGL ES 2.0 API calls and DirectX 9 API calls:

https://code.google.com/p/angleproject/

If your computer has decent OpenGL drivers, you should be able to run WebGL also using native OpenGL API rendering backend.

Chrome

For using OpenGL in Chrome, you need to start it with a command line option:

chrome.exe --use-gl=desktop

For example you could create a separate shortcut and add this flag in properties -> target.

Please note that all existing Chrome instances need to be closed before starting new Chrome with a flag, otherwise new Chrome window will be just a clone of the current running instance started without a flag.

If you have Chrome Canary installed in addition to other Chrome channel, it can be run in parallel with different flags (e.g you can have stable Chrome with ANGLE and Chrome Canary with OpenGL opened both at the same time).

Firefox

For using OpenGL in Firefox you need to change the runtime option. Type into address bar:

about:config

Find webgl.prefer-native-gl option and set its value to true. The effect is immediate, Firefox doesn't need to be restarted.