From ec97cd990184cff2fca52ff925be9931dbeee471 Mon Sep 17 00:00:00 2001 From: rmp22 <195054967+rmp22@users.noreply.github.com> Date: Fri, 10 Oct 2025 08:33:28 +0800 Subject: [PATCH] config: disabling hwc composition strategy on perf anim targets perfetto shows a lot of wasted time done on hwc composition strategy on mtk targets Change-Id: I88c810c954ae689f5ecd5c8f03e5130c356ae631 Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com> --- config/evolution.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/evolution.mk b/config/evolution.mk index f76ba3a7..68f670d3 100644 --- a/config/evolution.mk +++ b/config/evolution.mk @@ -80,12 +80,20 @@ else -include vendor/evolution-priv/keys/keys.mk endif +# PERF_ANIM_OVERRIDE +PRODUCT_PRODUCT_PROPERTIES += \ + persist.sys.activity_anim_perf_override=$(PERF_ANIM_OVERRIDE) + +ifeq ($(PERF_ANIM_OVERRIDE),true) +PRODUCT_PRODUCT_PROPERTIES += \ + debug.sf.predict_hwc_composition_strategy=0 +endif + # Other ROM feature flags BYPASS_CHARGE_SUPPORTED ?= false PERF_ANIM_OVERRIDE ?= false TORCH_STR_SUPPORTED ?= true PRODUCT_SYSTEM_PROPERTIES += \ - persist.sys.activity_anim_perf_override=$(PERF_ANIM_OVERRIDE) persist.sys.battery_bypass_supported=$(BYPASS_CHARGE_SUPPORTED) \ persist.sys.torch_str_support=$(TORCH_STR_SUPPORTED)