Skip to content

Commit

Permalink
apply gfx tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanvir1337x committed Jun 3, 2024
1 parent d9c427f commit 31228ec
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions user.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,30 @@ user_pref("doh-rollout.home-region", "US");
user_pref("extensions.pocket.enabled", false);
user_pref("extensions.screenshots.disabled", true);

// GFX
// Based on <https://gist.github.com/RubenKelevra/fd66c2f856d703260ecdf0379c4f59db#gfx-rendering-tweaks>
user_pref("gfx.canvas.accelerated", true);
user_pref("gfx.canvas.accelerated.cache-items", 32768);
user_pref("gfx.canvas.accelerated.cache-size", 4096);
// user_pref("layers.acceleration.force-enabled", true);
user_pref("gfx.content.skia-font-cache-size", 80);
user_pref("gfx.webrender.all", true);
user_pref("gfx.webrender.compositor", true);
// user_pref("gfx.webrender.compositor.force-enabled", true);
user_pref("gfx.webrender.enabled", true);
user_pref("gfx.webrender.precache-shaders", true);
user_pref("gfx.webrender.program-binary-disk", true);
user_pref("gfx.webrender.software.opengl", true);
user_pref("image.mem.decode_bytes_at_a_time", 65536);
user_pref("image.mem.shared.unmap.min_expiration_ms", 120000);
user_pref("layers.gpu-process.enabled", true);
// user_pref("layers.gpu-process.force-enabled", true);
user_pref("image.cache.size", 10485760);
user_pref("media.memory_cache_max_size", 1048576);
user_pref("media.memory_caches_combined_limit_kb", 3145728);
// ser_pref("media.hardware-video-decoding.force-enabled", true);
user_pref("media.ffmpeg.vaapi.enabled", true);

// Misc
user_pref("browser.cache.disk.parent_directory", "/run/user/1000/firefox"); // id -u <username>
user_pref("browser.search.suggest.enabled.private", true);
Expand Down

0 comments on commit 31228ec

Please sign in to comment.