From 9dead2b932e13be6e25cdff20294fbb9e616d69c Mon Sep 17 00:00:00 2001 From: Dudemanguy911 Date: Sun, 20 Oct 2019 12:46:42 -0500 Subject: wayland: fix presentation time There's 2 stupid things here that need to be fixed. First of all, vulkan wasn't actually using presentation time because somehow the get_vsync function in context.c disappeared. Secondly, if the mpv window was hidden it was updating the ust time based on the refresh_usec but really it should simply just not feed any information to the vsync info structure. So this adds some logic to assume whether or not a window is hidden. --- video/out/wayland_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/out/wayland_common.h') diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index 0e9705cce8..f0c11e080a 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -71,6 +71,8 @@ struct vo_wayland_state { bool maximized; bool configured; bool frame_wait; + bool hidden; + int timeout_count; int wakeup_pipe[2]; int pending_vo_events; int mouse_x; -- cgit v1.2.3