Skip to content

Instantly share code, notes, and snippets.

@bsiegel
Last active June 12, 2019 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsiegel/48d117184fdd50549919b85e2e78604d to your computer and use it in GitHub Desktop.
Save bsiegel/48d117184fdd50549919b85e2e78604d to your computer and use it in GitHub Desktop.
Power usage improvements in Firefox 67

Power usage improvements in Firefox 67

WebGL is a technology used to render 3D graphics on the web. This technology shows up in more places than you might expect - one common example is Google Maps which uses WebGL to render the map. When a site uses WebGL, it can optionally specify the 'powerPreference' option to request that browser render the content using the high-performance dedicated GPU or the low-power integrated GPU in a device such as a laptop which contains both.

Firefox defaults to high-performance mode if the site does not specify, which can use a lot of power because. Firefox 67 includes some new about:config flags that can be used to customize and improve the power usage of the browser when WebGL is active:

  • gl.allow-high-power (default true) This setting can be set to false to force the browser never to use the high-performance GPU when rendering WebGL content.

  • webgl.default-low-power (default false) This setting controls whether the high-performance GPU or the low-power GPU is used if a site does not specify a 'powerPreference'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment