diff options
author | Bipin Kumar <bipikuma@codeaurora.org> | 2021-05-07 13:08:02 +0530 |
---|---|---|
committer | Rajat Yadav <rajayada@codeaurora.org> | 2021-08-17 16:54:40 +0530 |
commit | 52bcc36adcea085e0750e22c3643bfc8573b15c1 (patch) | |
tree | f7131fb43f76da493d7649012ef7e1224170ecd9 | |
parent | 36d0db8927af701f6669257575109f017b95e1fb (diff) |
composer: Send large comp cycle hint only for higher fps
Change-Id: I4a2e7dcaf84b4ea12431dedb53469d19b2f4f6ef
-rw-r--r-- | composer/hwc_display_builtin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/composer/hwc_display_builtin.cpp b/composer/hwc_display_builtin.cpp index 486534a7..7d1cdf94 100644 --- a/composer/hwc_display_builtin.cpp +++ b/composer/hwc_display_builtin.cpp @@ -1648,6 +1648,13 @@ void HWCDisplayBuiltIn::SetCpuPerfHintLargeCompCycle() { return; } + //Send large comp cycle hint only for fps >= 90 + if (active_refresh_rate_ < 90) { + DLOGV_IF(kTagResources, "Skip large comp cycle hint for current fps - %u", + active_refresh_rate_); + return; + } + for (auto hwc_layer : layer_set_) { Layer *layer = hwc_layer->GetSDMLayer(); if (layer->composition == kCompositionGPU) { |