From e8b2e18eebbdb52dfea258aa4c998dad2204d657 Mon Sep 17 00:00:00 2001 From: Devika Krishnadas Date: Thu, 17 Jun 2021 04:40:20 +0800 Subject: [PATCH] Increase maxFrameBufferAcquiredBuffers to 3 When display and SF falls out of sync, there is a possibility that while display holds on to a buffer, a composed buffer could be waiting in the decon thread. Since maxFrameBufferAcquiredBuffers is 2, GPU will have to wait for display to swap out the buffer it is currently presenting to be able to compose for the next frame, which leads to SF missing its timeline for subsequent frames. Bug: 190842189 Test: perfetto Signed-off-by: Devika Krishnadas Change-Id: I434e8644cff2538589c1c9b2bf731afae0aa8980 --- device.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/device.mk b/device.mk index 72e6a194..e6455324 100644 --- a/device.mk +++ b/device.mk @@ -633,6 +633,7 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=80 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_touch_timer_ms=200 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_display_power_timer_ms=1000 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_content_detection_for_refresh_rate=true +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.max_frame_buffer_acquired_buffers=3 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.supports_background_blur=1