From fb55fbb7ecc5ce3552ed28154708ca1d04f8f061 Mon Sep 17 00:00:00 2001 From: Philip Quinn Date: Wed, 12 Jul 2023 15:11:37 -0700 Subject: [PATCH] Update motion prediction offset. The Jetpack motionprediction library calculates a prediction target based on the minimum display refresh rate (16~18 ms). UX feedback suggests that we should cap this at 3~4 stylus frames, which therefore requires a -4 ms offset (1 frame). Clients of the framework MotionPredictor can control the prediction time directly and can access predictions further into the future by providing a larger value. Bug: 288354672 Test: predictions are visible in the motionprediction test app Change-Id: I3a489b59b8b2050c64dd31b2a0f75c2238cb432d --- .../overlay/frameworks/base/core/res/res/values/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tangorpro/overlay/frameworks/base/core/res/res/values/config.xml b/tangorpro/overlay/frameworks/base/core/res/res/values/config.xml index 08296c2..15b02f6 100644 --- a/tangorpro/overlay/frameworks/base/core/res/res/values/config.xml +++ b/tangorpro/overlay/frameworks/base/core/res/res/values/config.xml @@ -636,7 +636,7 @@ true - 20000000 + -4000000 false