summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-11-06 15:29:10 -0600
committerDudemanguy <random342@airmail.cc>2023-11-07 00:52:46 +0000
commit506e8d9eafe70d65e78800b46c490e2dea6e68bc (patch)
treec66433145cf54ad9e6d12e9f9e88fb567590240a /video/out/vo.c
parent2872e929bbe25d845e1aa08a5a366cdc660bb4d0 (diff)
downloadmpv-506e8d9eafe70d65e78800b46c490e2dea6e68bc.tar.bz2
mpv-506e8d9eafe70d65e78800b46c490e2dea6e68bc.tar.xz
vo: require successive vsyncs to be more than swapchain depth
To make sure that present_sync is in line with the vsync timings here.
Diffstat (limited to 'video/out/vo.c')
-rw-r--r--video/out/vo.c2
1 files changed, 1 insertions, 1 deletions
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) {