config: Enable Advanced SF Phase Offsets
Enable Advanced Phase Offsets feature in SurfaceFlinger.
CRs-Fixed: 2658240
Change-Id: I9001af23f35b4161b87fc9955e5636c949357292
diff --git a/config/display-product.mk b/config/display-product.mk
index ac338c1..13467bc 100644
--- a/config/display-product.mk
+++ b/config/display-product.mk
@@ -60,7 +60,11 @@
vendor.display.comp_mask=0 \
vendor.display.enable_posted_start_dyn=1 \
vendor.display.enable_optimize_refresh=1 \
- vendor.display.use_smooth_motion=1
+ vendor.display.use_smooth_motion=1 \
+ debug.sf.enable_advanced_sf_phase_offset=1 \
+ debug.sf.high_fps_late_sf_phase_offset_ns=-4000000 \
+ debug.sf.high_fps_early_phase_offset_ns=-4000000 \
+ debug.sf.high_fps_early_gl_phase_offset_ns=-4000000
# Enable offline rotator for Bengal.
ifneq ($(TARGET_BOARD_PLATFORM),bengal)
@@ -76,15 +80,7 @@
ifeq ($(TARGET_BOARD_PLATFORM),kona)
PRODUCT_PROPERTY_OVERRIDES += \
- debug.sf.enable_gl_backpressure=1 \
- debug.sf.early_phase_offset_ns=500000 \
- debug.sf.early_app_phase_offset_ns=500000 \
- debug.sf.early_gl_phase_offset_ns=3000000 \
- debug.sf.early_gl_app_phase_offset_ns=15000000 \
- debug.sf.high_fps_early_phase_offset_ns=6100000 \
- debug.sf.high_fps_early_gl_phase_offset_ns=6500000 \
- debug.sf.perf_fps_early_gl_phase_offset_ns=9000000 \
- debug.sf.phase_offset_threshold_for_next_vsync_ns=6100000
+ debug.sf.enable_gl_backpressure=1
endif
ifneq ($(PLATFORM_VERSION), 10)