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
This commit is contained in:
tangrobin 2020-02-25 18:32:26 +08:00 committed by Volodymyr Zhdanov
parent 3e293a8a22
commit 17a98a1ad4

View File

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