From cbfd6d267767aeeb1c09c2b53729ee1fb48f13ca Mon Sep 17 00:00:00 2001 From: Kurt Kartaltepe Date: Tue, 23 Apr 2024 20:31:10 -0700 Subject: [PATCH] libobs: Remove extra gs_flush calls These calls introduce pipeline stalls in OpenGL on low end machines which can contribute to a fairly significant 10-30% of total rendering time. The driver already needs to synchronize events within the context so these calls are not needed for correctness for OpenGL. --- libobs/obs-video.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libobs/obs-video.c b/libobs/obs-video.c index 55a63ef56..eca6f8304 100644 --- a/libobs/obs-video.c +++ b/libobs/obs-video.c @@ -558,7 +558,6 @@ static inline void render_video(struct obs_core_video_mix *video, bool raw_activ copy_surfaces = video->copy_surfaces_encode; channel_count = 1; #endif - gs_flush(); } if (video->gpu_conversion) { @@ -566,7 +565,6 @@ static inline void render_video(struct obs_core_video_mix *video, bool raw_activ } if (gpu_active) { - gs_flush(); output_gpu_encoders(video, raw_active); }