Skip to content

Instantly share code, notes, and snippets.

@yuttie
Created June 9, 2015 13:40
Show Gist options
  • Save yuttie/de097d004499adb984bd to your computer and use it in GitHub Desktop.
Save yuttie/de097d004499adb984bd to your computer and use it in GitHub Desktop.
Optimizations for Firefox on Linux
// Force-enable hardware acceleration.
// Setting MOZ_USE_OMTC=1 is necessary.
// http://en.librehat.com/blog/force-enable-hardware-acceleration-in-firefox-on-linux/
user_pref("webgl.force-enabled", true);
user_pref("layers.acceleration.force-enabled", true);
user_pref("layers.offmainthreadcomposition.enabled;true", true);
user_pref("layers.offmainthreadcomposition.async-animations", true);
// Force-enable Skia backend for Azure
// https://bugzilla.mozilla.org/show_bug.cgi?id=740200#c44
user_pref("gfx.content.azure.backends", "skia");
user_pref("gfx.canvas.azure.backends", "skia");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment