Skip to content

Commit

Permalink
firefox: Enable WebRender by default, bypassing Firefox's internal
Browse files Browse the repository at this point in the history
soup of checks to see whether the GPU is "good enough" (that has a failure
rate of 100% on NetBSD).  Greatly improves general web page performance,
even with the unaccelerated llvmpipe OpenGL implementation.  Tested
with various Xorg drivers.
  • Loading branch information
alarixnia committed May 16, 2022
1 parent f124d7e commit 1a3b52d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions www/firefox/distinfo
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
$NetBSD: distinfo,v 1.465 2022/05/14 10:30:26 tnn Exp $
$NetBSD: distinfo,v 1.466 2022/05/16 05:39:52 nia Exp $

BLAKE2s (firefox-100.0.source.tar.xz) = 4812f3e0fb74292ce21fa024ae27e8f3aa534b58cd0bbac8e01f67d7ccc42196
SHA512 (firefox-100.0.source.tar.xz) = 29c56391c980209ff94c02a9aba18fe27bea188bdcbcf7fe0c0f27f61e823f4507a3ec343b27cb5285cf3901843e9cc4aca8e568beb623c4b69b7282e662b2aa
Size (firefox-100.0.source.tar.xz) = 487179576 bytes
BLAKE2s (nodejs-output-95.0.tgz) = c44b37d3605524a49157002f01c29f568f04194b0e635bc312de7ffdeb9a74c9
SHA512 (nodejs-output-95.0.tgz) = 2faf326f4e100b66f8597c365cc2eb5d0eee26aae92a7e2446891f2178041aa71ba16eae37000acacd43a657025ec11c18db73b112f5c49cc21cdb882da6d798
Size (nodejs-output-95.0.tgz) = 200627 bytes
SHA1 (patch-browser_app_profile_firefox.js) = 89cea0a66457c96ad0b94aaa524aa5942ad781d0
SHA1 (patch-browser_app_profile_firefox.js) = 7f6b4361fe62ccc2d1c092a5ace97ea2085727bf
SHA1 (patch-build_moz.configure_rust.configure) = 25ddfacd29cebbc6db005dbe61a2a7446d480678
SHA1 (patch-config_gcc-stl-wrapper.template.h) = 9d1f15ff487efa9202114d19ed5668b4e7aa032a
SHA1 (patch-config_makefiles_rust.mk) = fa9f0f59a179cae2562a76110fada49039490fb8
Expand Down
17 changes: 14 additions & 3 deletions www/firefox/patches/patch-browser_app_profile_firefox.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
$NetBSD: patch-browser_app_profile_firefox.js,v 1.15 2020/05/03 18:45:30 maya Exp $
$NetBSD: patch-browser_app_profile_firefox.js,v 1.16 2022/05/16 05:39:52 nia Exp $

--- browser/app/profile/firefox.js.orig 2019-07-06 01:48:29.000000000 +0000
This patch modifies default Firefox settings - see the comments above
each one.

--- browser/app/profile/firefox.js.orig 2022-04-28 23:01:46.000000000 +0000
+++ browser/app/profile/firefox.js
@@ -1851,6 +1851,12 @@ pref("fission.frontend.simulate-messages
@@ -2205,6 +2205,20 @@ pref("fission.frontend.simulate-messages
pref("toolkit.coverage.enabled", false);
pref("toolkit.coverage.endpoint.base", "https://coverage.mozilla.org");

Expand All @@ -11,6 +14,14 @@ $NetBSD: patch-browser_app_profile_firefox.js,v 1.15 2020/05/03 18:45:30 maya Ex
+
+// Enable system addons, for example langpacks from www/firefox-l10n
+pref("extensions.autoDisableScopes", 11);
+
+// Firefox includes a complex mechanism for "blacklisting" GPUs that
+// appears to fail on a NetBSD system where the only available OpenGL
+// implementations are all from Mesa. WebRender was supposed to be
+// enabled by default from Firefox 91 onwards and appears to greatly
+// improve performance even with acceleration disabled at the kernel
+// level.
+pref("gfx.webrender.all", true);
+
// Discovery prefs
pref("browser.discovery.enabled", true);
Expand Down

0 comments on commit 1a3b52d

Please sign in to comment.