Bug 1252929: Change default layers.max-active to 3 on nightly. r?snorp
MozReview-Commit-ID: AjgQM4U7qRq
--- 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