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
This commit is contained in:
tangrobin 2020-02-25 18:32:26 +08:00 committed by Arian
parent eded8aab13
commit 276fe2261e
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9

View File

@ -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