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:
Dudemanguy 2023-11-06 15:29:10 -06:00
parent 2872e929bb
commit 506e8d9eaf
1 changed files with 1 additions and 1 deletions

View File

@ -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) {