diff options
author | Dudemanguy <random342@airmail.cc> | 2023-11-06 15:29:10 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-07 00:52:46 +0000 |
commit | 506e8d9eafe70d65e78800b46c490e2dea6e68bc (patch) | |
tree | c66433145cf54ad9e6d12e9f9e88fb567590240a | |
parent | 2872e929bbe25d845e1aa08a5a366cdc660bb4d0 (diff) | |
download | mpv-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.
-rw-r--r-- | video/out/vo.c | 2 |
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) { |