From 17a98a1ad4162400b9d2d51044b27e8d24700d2f Mon Sep 17 00:00:00 2001 From: tangrobin Date: Tue, 25 Feb 2020 18:32:26 +0800 Subject: [PATCH] sm6250-common: 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 2fe9c18..907648a 100644 --- a/vendor.prop +++ b/vendor.prop @@ -140,10 +140,11 @@ ro.crypto.allow_encrypt_override=true ro.crypto.volume.filenames_mode=aes-256-cts # Display -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 persist.sys.sf.color_saturation=1.0 ro.hardware.egl=adreno ro.hardware.vulkan=adreno