From 276fe2261eb9caacfb74e00ee3e8422c2807060d Mon Sep 17 00:00:00 2001 From: tangrobin Date: Tue, 25 Feb 2020 18:32:26 +0800 Subject: [PATCH] davinci: Refined early phase offsets GPU takes long time(>8ms) when app was launching and closing. This may because GPU is handling some heavy task like color conversion. By setting NegativeOffset as 5ms to allow SF have more time to handle when doing animation transaction and shift back 5ms with early_app_phase_offset_ns such that app still has the same amount of time to handle each frame. Test: 1. Open Chrome from homescreen 2. Swipe vertically to go back to home screen 3. Measure the gpu completion time and "FrameMissed" count from systrace result Bug: 147339695 Change-Id: I157cb11e8ed8c1ca296fc65612752fbb3d985dcd --- vendor.prop | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vendor.prop b/vendor.prop index a88091a..4c00966 100644 --- a/vendor.prop +++ b/vendor.prop @@ -103,10 +103,11 @@ ro.telephony.iwlan_operation_mode=legacy debug.egl.hw=0 debug.mdpcomp.logs=0 debug.sf.disable_backpressure=1 -debug.sf.early_phase_offset_ns=500000 -debug.sf.early_app_phase_offset_ns=500000 +debug.sf.early_phase_offset_ns=11600000 +debug.sf.early_app_phase_offset_ns=11600000 debug.sf.early_gl_phase_offset_ns=3000000 debug.sf.early_gl_app_phase_offset_ns=15000000 +debug.sf.phase_offset_threshold_for_next_vsync_ns=11600000 debug.sf.enable_egl_image_tracker=1 debug.sf.enable_hwc_vds=1 debug.sf.hw=0