Bug 1252929: Change default layers.max-active to 3 on nightly. r?snorp draft
authorMilan Sreckovic <milan@mozilla.com>
Thu, 03 Mar 2016 15:25:26 -0500
changeset 336575 8bc28c4321c1cb65e202d304040b9221ac5b3ee4
parent 335780 a4929411c0aa3ec6b727e2bc2fc050c8199c6573
child 515451 3705821893bcee02429e1f8ec3fb14e0b0e6bbff
push id12124
push usermsreckovic@mozilla.com
push dateThu, 03 Mar 2016 20:25:54 +0000
reviewerssnorp
bugs1252929
milestone47.0a1
Bug 1252929: Change default layers.max-active to 3 on nightly. r?snorp MozReview-Commit-ID: AjgQM4U7qRq
mobile/android/app/mobile.js
--- a/mobile/android/app/mobile.js
+++ b/mobile/android/app/mobile.js
@@ -605,17 +605,22 @@ pref("layers.progressive-paint", true);
 pref("layers.low-precision-buffer", true);
 pref("layers.low-precision-resolution", "0.25");
 pref("layers.low-precision-opacity", "1.0");
 // We want to limit layers for two reasons:
 // 1) We can't scroll smoothly if we have to many draw calls
 // 2) Pages that have too many layers consume too much memory and crash.
 // By limiting the number of layers on mobile we're making the main thread
 // work harder keep scrolling smooth and memory low.
+#ifdef NIGHTLY_BUILD
+// Temporary experiment
+pref("layers.max-active", 3);
+#else
 pref("layers.max-active", 20);
+#endif
 
 pref("notification.feature.enabled", true);
 pref("dom.webnotifications.enabled", true);
 
 // prevent tooltips from showing up
 pref("browser.chrome.toolbar_tips", false);
 
 // prevent video elements from preloading too much data