From eddb07ac408fe80af0ffd88e85880f813c57642a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 21 Sep 2024 15:43:19 +0200 Subject: Revert recent time framing and performance changes as it affects slower devices badly --- src/capture/xcomposite.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/capture/xcomposite.c') diff --git a/src/capture/xcomposite.c b/src/capture/xcomposite.c index 9d053bb..31d0b7e 100644 --- a/src/capture/xcomposite.c +++ b/src/capture/xcomposite.c @@ -258,9 +258,6 @@ static int gsr_capture_xcomposite_capture(gsr_capture *cap, AVFrame *frame, gsr_ const vec2i target_pos = { max_int(0, frame->width / 2 - self->texture_size.x / 2), max_int(0, frame->height / 2 - self->texture_size.y / 2) }; - self->params.egl->glFlush(); - self->params.egl->glFinish(); - /* Fast opengl free path */ if(video_codec_context_is_vaapi(self->video_codec_context) && self->params.egl->gpu_info.vendor == GSR_GPU_VENDOR_AMD) { vaapi_copy_egl_image_to_video_surface(self->params.egl, self->window_texture.image, (vec2i){0, 0}, self->texture_size, target_pos, self->texture_size, self->video_codec_context, frame); -- cgit v1.2.3