From 41bd6cee631a16076435984891f2134443ecec31 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 18 Sep 2024 00:11:23 +0200 Subject: Use async_depth option on vaapi for much better encoding performance --- src/capture/kms.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/capture') diff --git a/src/capture/kms.c b/src/capture/kms.c index ba8510d..030d609 100644 --- a/src/capture/kms.c +++ b/src/capture/kms.c @@ -497,6 +497,9 @@ static void render_drm_cursor(gsr_capture_kms *self, gsr_color_conversion *color } static void render_x11_cursor(gsr_capture_kms *self, gsr_color_conversion *color_conversion, vec2i capture_pos, vec2i target_pos) { + if(!self->x11_cursor.visible) + return; + gsr_cursor_tick(&self->x11_cursor, DefaultRootWindow(self->params.egl->x11.dpy)); const vec2i cursor_pos = { -- cgit v1.2.3