diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-01-07 10:29:15 +0000 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-01-07 10:29:15 +0000 |
commit | c17c26f404ad064b7b0e67697cf10c9dada9ca37 (patch) | |
tree | bb6029d2baa2432d2530359c0f4641d69893c575 /video/out/opengl | |
parent | d3eafc976df80bb06e3e8dbba0b82c4440f6b2c6 (diff) |
context_wayland: do not call vo_wayland_request_frame() upon bufferswap
vo_wayland_wait_events() is going to return when its time to swap the
buffers anyway, calling request_frame() before makes no sense.
Fixes the constant high CPU usage by the compositor when mpv is paused
and the window is in view.
Diffstat (limited to 'video/out/opengl')
-rw-r--r-- | video/out/opengl/context_wayland.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/video/out/opengl/context_wayland.c b/video/out/opengl/context_wayland.c index 3864e2887f..127ddcaa93 100644 --- a/video/out/opengl/context_wayland.c +++ b/video/out/opengl/context_wayland.c @@ -161,9 +161,6 @@ static void waylandgl_swap_buffers(MPGLContext *ctx) { struct vo_wayland_state *wl = ctx->vo->wayland; - if (!wl->frame.callback) - vo_wayland_request_frame(ctx->vo, NULL, NULL); - vo_wayland_wait_events(ctx->vo, 0); eglSwapBuffers(wl->egl_context.egl.dpy, wl->egl_context.egl_surface); |