Patcher/pre-compile-patches/smoothfox.patch

29 lines
2.3 KiB
Diff
Raw Permalink Normal View History

2024-12-08 20:26:13 +01:00
t:pref
i:/browser/app/profile/firefox.js
o:/browser/app/profile/firefox.js
+pref("gfx.webrender.all", true); // Enable WebRender for smoother graphics
+pref("gfx.webrender.compositor", true); // Use the WebRender compositor
+pref("gfx.canvas.accelerated", true); // Accelerate canvas rendering
+pref("layers.gpu-process.enabled", true); // Enable GPU process for layers
+pref("gfx.webrender.precache-shaders", true); // Precache shaders to avoid stutters
+pref("media.hardware-video-decoding.enabled", true); // Enable hardware video decoding
+pref("media.ffmpeg.vaapi.enabled", true); // Enable VA-API for hardware-accelerated video decoding (Linux-specific)
+pref("dom.animations-api.core.enabled", true); // Enable the animations API for smoother animations
+pref("layout.frame_rate", 120); // Set frame rate to 120 for smoother rendering
+pref("image.cache.size", 52428800); // Increase image cache size to reduce reloading
+pref("image.mem.decode_bytes_at_a_time", 524288); // Improve image decoding performance
+pref("layout.display-list.retain", true); // Retain display lists for smoother scrolling
+pref("layout.css.scroll-behavior.smooth", true); // Enable smooth scrolling
+pref("general.smoothScroll", true); // Enable general smooth scrolling
+pref("general.smoothScroll.currentVelocityWeighting", 0.15); // Velocity influence for scrolling (Natural Smooth Scrolling v3)
+pref("general.smoothScroll.stopDecelerationWeighting", 0.6); // Deceleration influence (Natural Smooth Scrolling v3)
+pref("general.smoothScroll.msdPhysics.enabled", true); // Enable physics-based smooth scrolling
+pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 250); // Motion start spring constant
+pref("general.smoothScroll.msdPhysics.regularSpringConstant", 250); // Regular scrolling spring constant
+pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 120); // Maximum delta for continuous motion
+pref("mousewheel.default.delta_multiplier_y", 100); // Adjust scroll speed multiplier
+pref("mousewheel.min_line_scroll_amount", 25); // Minimum scroll amount for smoothness
+pref("apz.gtk.kinetic_scroll.enabled", true); // Enable kinetic scrolling (Linux-specific)
+pref("apz.velocity_bias", 0.7); // Bias for scroll velocity adjustment
+pref("apz.velocity_relevance_time_ms", 150); // Time frame for velocity calculation relevance