mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-18 13:33:27 -04:00
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:
committed by
Ryan Foster
parent
cc0fd86c05
commit
cbfd6d2677
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user