From 7d7d96f2cd938ac55182a144e025621da6843a66 Mon Sep 17 00:00:00 2001 From: Ady Abraham Date: Wed, 12 May 2021 03:12:50 +0000 Subject: [PATCH] Change SF duration to be less than one vsync period To prevent early presentation, SF does not allow to skip validate if it is called more than one vsync period before the target present time (ag/14508376). If we wake up SF too early, then skip validate would be disabled and we would end up with 2 binder calls to composer (validate + present) instead of just one (presentOrValidate) Change-Id: I0ff779db088b27a9bf18e4ede459fca722eb944c Test: run bouncy ball and collect systraces Bug: 161945010 Bug: 187871031 --- device.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.mk b/device.mk index 09b136a8..c114a9a2 100644 --- a/device.mk +++ b/device.mk @@ -590,7 +590,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ debug.sf.enable_gl_backpressure=1 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.use_phase_offsets_as_durations=1 -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.late.sf.duration=10500000 +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.late.sf.duration=8300000 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.late.app.duration=20500000 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.early.sf.duration=16000000 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.early.app.duration=16500000