summaryrefslogtreecommitdiff
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
author Haixia Shi <hshi@google.com> 2015-10-28 13:22:22 -0700
committer Haixia Shi <hshi@google.com> 2015-10-30 13:16:09 -0700
commit664339a8e8d3f2d5acd5728dae666cc9a14e08f3 (patch)
tree90488915028bc55af24c4a83b454bc64cec9f17d /libs/ui/FramebufferNativeWindow.cpp
parent3b0d488e87bf602998749e27ad5b555122895a90 (diff)
SF: use first sample timestamp as reference.
Do not use the absolute 64-bit nsecs_t timestamp directly in phase and error calculations. Compared to the estimated vsync period, the timestamp tend to many orders of magnitudes larger, and consequently the integer modulo operation used to calculate phase and error can be very sensitive to tiny fluctuation in vsync period. Bug: 25113115 Test: set kTraceDetailedInfo=true; see Phase and Error are stable in systrace Change-Id: I687703eec31b1072c606898c0424a96c0a8ca033
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
0 files changed, 0 insertions, 0 deletions