diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-18 00:11:23 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-18 11:15:10 +0200 |
commit | 41bd6cee631a16076435984891f2134443ecec31 (patch) | |
tree | 18e89b80a663a6b7980bb7f6f7fe453d5aa75684 /src/capture/kms.c | |
parent | 702c681a9566a0b49e66168f91ceac97e44cef97 (diff) |
Use async_depth option on vaapi for much better encoding performance
Diffstat (limited to 'src/capture/kms.c')
-rw-r--r-- | src/capture/kms.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 = { |