Skip to content

wayland: increase the vblank waiting time - #9514

Merged
Dudemanguy merged 1 commit into
mpv-player:masterfrom
Dudemanguy:wayland-frame-garbage
Nov 25, 2021
Merged

wayland: increase the vblank waiting time#9514
Dudemanguy merged 1 commit into
mpv-player:masterfrom
Dudemanguy:wayland-frame-garbage

Conversation

@Dudemanguy

@Dudemanguy Dudemanguy commented Nov 25, 2021

Copy link
Copy Markdown
Member

Don't like it but maybe I'll deal with it for now. Fixes #9504.

This commit sucks bad, but everything else is worse is other ways.
Basically, the current vblank waiting time in the vo_wayland_wait_frame
function (calculated very carefully using presentation statistics) is
randomly too short. Some compositors are quite variable when they
actually return callback so our timeout expires too quickly and throws
everything off. The fix? Add an arbitrary 5% to the vblank value and
pray that nothing gets off that much. Why did they have to make
swapinterval 1/fifo mode indefinitely block? Fixes mpv-player#9504.
@Dudemanguy
Dudemanguy merged commit 1ab9119 into mpv-player:master Nov 25, 2021
@Dudemanguy
Dudemanguy deleted the wayland-frame-garbage branch November 25, 2021 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If I close stats.lua, there are Vsync-Jitter, mistimed, delayed.

2 participants