Disable ADPF CPU hint session rate limiter
After some testing, it has become clear that the rate limiter is
unhelpful and possibly harmful for performance. Rate limiting also
happens on PowerHAL side now, rendering this somewhat redundant,
so this patch disables rate limiting and hint batching on SF side.
Bug: b/241973353
Bug: b/195990840
Test: manual
Change-Id: I7ae43d7c9bfc95c94963ae4852d3190ee987c9aa
(cherry picked from commit 111de0342da565a667f5ccbc130a62e706ebbf89)
diff --git a/services/surfaceflinger/DisplayHardware/PowerAdvisor.cpp b/services/surfaceflinger/DisplayHardware/PowerAdvisor.cpp
index b9d4753..ae90dc1 100644
--- a/services/surfaceflinger/DisplayHardware/PowerAdvisor.cpp
+++ b/services/surfaceflinger/DisplayHardware/PowerAdvisor.cpp
@@ -640,9 +640,8 @@
mSupportsPowerHint = checkPowerHintSessionSupported();
- mAllowedActualDeviation =
- base::GetIntProperty<nsecs_t>("debug.sf.allowed_actual_deviation",
- std::chrono::nanoseconds(250us).count());
+ // Currently set to 0 to disable rate limiter by default
+ mAllowedActualDeviation = base::GetIntProperty<nsecs_t>("debug.sf.allowed_actual_deviation", 0);
}
AidlPowerHalWrapper::~AidlPowerHalWrapper() {