Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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:
If your computer has decent OpenGL drivers, you should be able to run WebGL also using native OpenGL API rendering backend.
For using OpenGL in Chrome, you need to start it with a command line option:
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).
For using OpenGL in Firefox you need to change the runtime option. Type into address bar:
webgl.prefer-native-gl option and set its value to
true. The effect is immediate, Firefox doesn't need to be restarted.
webgl.disable-angle option and set its value to
true. The effect is immediate, Firefox doesn't need to be restarted. (source)