From 98c0a3016196a8d36e37363a975c9c13fd488164 Mon Sep 17 00:00:00 2001 From: millerliang Date: Mon, 17 Dec 2018 15:47:24 +0800 Subject: [PATCH] sdm660-common: Refined early SF phase offsets Sometimes SW_VSNC of DispSync comes 1ms earlier than signal_retire_fence(or HW_VSYNC) It means VSYNC-sf only 5ms behind signal_retire_fence. And VSYNC-sf will be 5.5ms earlier when applying early_sf_phase. (the phase-sf changes from 6ms to 0.5ms) Therefore, VSYNC-sf comes 0.5ms earlier than signal_retire_fence when applying early_sf_phase for transaction and cause frame missed. Add more 1ms to early_sf_phase then it will come 0.5 later than signal_retire_fence in this case. Bug: 118606025 Test: Open/close apps, observe no jank Test: -Launch app, stay the same picture on screen at least 30s -Tap home key, observe no jank when doing app animation Change-Id: I2da26e844cfc3dc86d7617e44906230ded760d7c Signed-off-by: PainKiller3 --- properties.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/properties.mk b/properties.mk index 49809099..fa8b8660 100644 --- a/properties.mk +++ b/properties.mk @@ -69,10 +69,10 @@ PRODUCT_PROPERTY_OVERRIDES += \ debug.sf.enable_hwc_vds=1 \ debug.sf.hw=1 \ debug.sf.latch_unsignaled=1 \ - debug.sf.early_app_phase_offset_ns=500000 \ + debug.sf.early_app_phase_offset_ns=1500000 \ debug.sf.early_gl_phase_offset_ns=3000000 \ debug.sf.early_gl_app_phase_offset_ns=15000000 \ - debug.sf.early_phase_offset_ns=500000 \ + debug.sf.early_phase_offset_ns=1500000 \ persist.debug.wfd.enable=1 \ persist.hwc.enable_vds=1 \ ro.opengles.version=196610 \