SF: increase LayerHistory::kMinPeriodBetweenFrames to 240fps
kMinPeriodBetweenFrames is meant to sanitize the input frame delta data
to LayerHistory. We set it to 240fps to ignore shorter deltas than 4ms.
Test: TouchLatecy app on a 120Hz device
Bug: 187873029
Change-Id: Ib8f71f9fa079a214a302a1079bbc199caba213df
diff --git a/services/surfaceflinger/Scheduler/LayerInfo.h b/services/surfaceflinger/Scheduler/LayerInfo.h
index ba03c89..34cc389 100644
--- a/services/surfaceflinger/Scheduler/LayerInfo.h
+++ b/services/surfaceflinger/Scheduler/LayerInfo.h
@@ -272,7 +272,7 @@
// Used for sanitizing the heuristic data. If two frames are less than
// this period apart from each other they'll be considered as duplicates.
- static constexpr nsecs_t kMinPeriodBetweenFrames = Fps(120.f).getPeriodNsecs();
+ static constexpr nsecs_t kMinPeriodBetweenFrames = Fps(240.f).getPeriodNsecs();
// Used for sanitizing the heuristic data. If two frames are more than
// this period apart from each other, the interval between them won't be
// taken into account when calculating average frame rate.