diff options
author | Dudemanguy <random342@airmail.cc> | 2020-08-24 11:11:39 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2020-08-24 11:11:39 -0500 |
commit | f3f49de91835b256108a4cc9b242f3880c464889 (patch) | |
tree | 3c5ff0de6f255705087a7d59820896a342bc5c90 /ci | |
parent | 74e62ed2d1e2058f6dbc9e8b9f759c20493e25bf (diff) | |
download | mpv-f3f49de91835b256108a4cc9b242f3880c464889.tar.bz2 mpv-f3f49de91835b256108a4cc9b242f3880c464889.tar.xz |
wayland: always update sbc for presentation time
Oversight in b0f0be7. The user_sbc value would update but not last_sbc
if no presentation events were received. This would result in an
incorrect sbc_passed value (in practice, this should always be 1 since,
as far I know, all wayland compositors are currently only capable of
double buffering). When bring the window back into view, it would result
in a single frame of very high vsync jitter. Although in most cases it
was imperceptible, rarely I was able to completely break playback (i.e.
constant mistimed/dropped frames). Fix this by simply incrementing
last_sbc by 1 if the window is hidden. The buffer swap call did still
occur. The user just didn't see it.
Diffstat (limited to 'ci')
0 files changed, 0 insertions, 0 deletions