From 027ca4fb855f3dff4cba1c907c92c509b82e6fe8 Mon Sep 17 00:00:00 2001 From: dudemanguy Date: Mon, 14 Oct 2019 12:16:42 -0500 Subject: wayland: add various render-related options The newest wayland changes have some new logic that make sense to expose to users as configurable options. --- video/out/vulkan/context_wayland.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out/vulkan/context_wayland.c') diff --git a/video/out/vulkan/context_wayland.c b/video/out/vulkan/context_wayland.c index d3da628137..6abec91aaf 100644 --- a/video/out/vulkan/context_wayland.c +++ b/video/out/vulkan/context_wayland.c @@ -110,7 +110,8 @@ static void wayland_vk_swap_buffers(struct ra_ctx *ctx) queue_new_sync(wl); } - vo_wayland_wait_frame(wl); + if (!wl->opts->disable_vsync) + vo_wayland_wait_frame(wl, wl->opts->frame_offset); if (wl->presentation) wayland_sync_swap(wl); -- cgit v1.2.3