From ebec6a203ca779b7cb52b6c25fb87067145dea82 Mon Sep 17 00:00:00 2001 From: Yichi Chen Date: Fri, 29 Apr 2022 05:09:13 +0800 Subject: [PATCH] SF: set debug.sf.layer_caching_active_layer_timeout_ms to 1000 Avoid SF cache thrashing in some cases. Bug: 189928400 Bug: 226447218 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 7dcbaec2..3efa035a 100644 --- a/device.mk +++ b/device.mk @@ -618,6 +618,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 += debug.sf.treat_170m_as_sRGB=1 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.enable_layer_caching=true