config: Set SF phase offsets to support high fps
Set SF phase offsets to support high refresh rate.
CRs-Fixed: 2480665
Change-Id: I3903c10ead2960806f526b6bd0ee18a5ad1e7404
diff --git a/config/display-product.mk b/config/display-product.mk
index 31dde0f..9da8397 100644
--- a/config/display-product.mk
+++ b/config/display-product.mk
@@ -53,13 +53,21 @@
vendor.display.disable_excl_rect=0 \
vendor.display.comp_mask=0 \
vendor.display.enable_posted_start_dyn=1 \
- vendor.display.use_smooth_motion=1
+ vendor.display.use_smooth_motion=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=9000000 \
+ debug.sf.phase_offset_threshold_for_next_vsync_ns=6100000
#Set WCG properties
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_wide_color_display=true
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_HDR_display=true
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=true
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.wcg_composition_dataspace=143261696
+PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.vsync_sf_event_phase_offset_ns=6000000
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
# Recovery is enabled, logging is enabled