summaryrefslogtreecommitdiff
path: root/libs/graphicsenv/GraphicsEnv.cpp
diff options
context:
space:
mode:
author Tim Murray <timmurray@google.com> 2020-09-09 21:29:13 +0000
committer Tim Murray <timmurray@google.com> 2020-09-25 17:16:27 +0000
commitb5daa9109e3a421d5afdbe64b384bbf501770e9c (patch)
tree49ae18df6990c928054f2340b1a384cc5e8f5efb /libs/graphicsenv/GraphicsEnv.cpp
parentd7016343a92974751e498fe4ca49a07f79031741 (diff)
EventThread: wake for two frames after vsync request by default
The common case seems to be that many frames are rendered in a row before the system quiesces, but EventThread assumes that only a single frame will be rendered after a call to requestNextVsync. This patch moves requestNextVsync to wake for two frames by default, allowing it to skip the EventThread wakeup when there's a pending wakeup for that EventThread already. Test: no EventThread wakeups from requestNextVsync in BouncyBall bug: 169368457 Change-Id: I5cb880dad27062e158de640540a73cba59b223e5
Diffstat (limited to 'libs/graphicsenv/GraphicsEnv.cpp')
0 files changed, 0 insertions, 0 deletions