summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorHaixia Shi <hshi@google.com>2015-10-28 13:22:22 -0700
committerHaixia Shi <hshi@google.com>2015-10-28 13:22:22 -0700
commitc449da22f3dfc3b947a2305f2831de19d84bf193 (patch)
treea867f7bddfb42a236e1a00cd4671703a71a0b5ef /opengl/tests/gl_basic/gl_basic.cpp
parenta78c2e65e13cace4fdbb0295beca5b11de9fde06 (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 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions