mirror of https://github.com/mpv-player/mpv
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++;
|
in->num_successive_vsyncs++;
|
||||||
if (in->num_successive_vsyncs <= 2)
|
if (in->num_successive_vsyncs <= vo->opts->swapchain_depth)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (vsync_time <= 0 || vsync_time <= prev_vsync) {
|
if (vsync_time <= 0 || vsync_time <= prev_vsync) {
|
||||||
|
|
Loading…
Reference in New Issue