From 506e8d9eafe70d65e78800b46c490e2dea6e68bc Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Mon, 6 Nov 2023 15:29:10 -0600 Subject: vo: require successive vsyncs to be more than swapchain depth To make sure that present_sync is in line with the vsync timings here. --- video/out/vo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/vo.c b/video/out/vo.c index b6dbd7e32a..bf1ba114fd 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -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) { -- cgit v1.2.3