From 0facd0130b8ab123b182e711e11efa3a171f7743 Mon Sep 17 00:00:00 2001 From: Long Ling Date: Tue, 20 Jul 2021 09:52:19 -0700 Subject: [PATCH] SF: set debug.sf.layer_caching_active_layer_timeout_ms to 1000 Avoid SF cache thrashing in some cases. Bug: 189928400 Test: no flicking issue with the testbuld (removed displaycolor fix) and flicking happens after set the prop to 0 Change-Id: I24aa79001ec21cff18ae5ac8ff988f70ed121061 --- device.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/device.mk b/device.mk index d82666c0..853e792d 100644 --- a/device.mk +++ b/device.mk @@ -624,6 +624,7 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.early.app.duration=16600000 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.earlyGl.sf.duration=16600000 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.earlyGl.app.duration=16600000 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.frame_rate_multiple_threshold=120 +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.layer_caching_active_layer_timeout_ms=1000 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.enable_layer_caching=true PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=80