summaryrefslogtreecommitdiff
path: root/opengl/libagl/array.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2020-03-17 11:18:05 -0700
committer Alec Mouri <alecmouri@google.com> 2020-03-19 16:54:56 -0700
commit6d414b56539c719694dd06ec6624ba280bf402c5 (patch)
tree834830323238993c0961faf2476a06d38c92510e /opengl/libagl/array.cpp
parent8929001832590afd537f2e06147c039b951d862c (diff)
[SurfaceFlinger] Adjust missed frame tracking
Before, missed frame tracking may be inaccurate if a frame takes longer than one vsync and either an invalidate message is not immediately scheduled afterwards, or the frame takes almost as long as two vsyncs but manages to be on time to be presented for that second vsync. Those scenarios can cause visual jank, but they are not tracked by missed frames which affects testing. * Rename the previous missedFrames to pendingFrames * pendingFrames is used to check for backpressure propagation so there is no change to device behavior * Compute a new missedFrames count by relaxing the check for pendingFrames - if the expected present time of the previous frame was earlier than the actual present time then that frame was missed. We add half a vsync of slop to correct for scheduling drift. Bug: 143647283 Test: boots Test: systrace Change-Id: I0f76d06737f5182c512ca6f36b332b68192250c3
Diffstat (limited to 'opengl/libagl/array.cpp')
0 files changed, 0 insertions, 0 deletions