DescriptionAllow Windows to use system Vsync if only one window is swapping
This makes the common case (single browser window) smoother. Having
multiple swapping windows visible will force the previous behavior.
This patch differs from a previous variant (https://codereview.chromium.org/708483003)
in that there's now a "timeout" before we attempt turning on vsync again.
Specifically, we need to go for 60 frames without a frame where two
surfaces swap in order to turn Vsync on. This accounts for cases where
low-frequency updates in one window (blinking cursor) don't trigger
frequent vsync state changes. Also prevents pathologically bad cases
where two frequently updating windows would cause one another to skip
alternating frames.
BUG=422000
Committed: https://crrev.com/9b71e13d22829c2df1620211049a6032628ebea8
Cr-Commit-Position: refs/heads/master@{#309861}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fixed compile issues on Linux #Patch Set 3 : Addressed kbr@s feedback #Patch Set 4 : Fix Linux nit #
Messages
Total messages: 12 (4 generated)
|