mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
vo: require successive vsyncs to be more than swapchain depth
To make sure that present_sync is in line with the vsync timings here.
This commit is contained in:
parent
2872e929bb
commit
506e8d9eaf
@ -507,7 +507,7 @@ static void update_vsync_timing_after_swap(struct vo *vo,
|
||||
}
|
||||
|
||||
in->num_successive_vsyncs++;
|
||||
if (in->num_successive_vsyncs <= 2)
|
||||
if (in->num_successive_vsyncs <= vo->opts->swapchain_depth)
|
||||
return;
|
||||
|
||||
if (vsync_time <= 0 || vsync_time <= prev_vsync) {
|
||||
|
Loading…
Reference in New Issue
Block a user