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.
This commit is contained in:
Kurt Kartaltepe
2026-05-07 13:49:53 -04:00
committed by Ryan Foster
parent cc0fd86c05
commit cbfd6d2677
-2
View File
@@ -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);
}