mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-30 22:38:30 +08:00
libobs: Remove display GPU markers without draws
This commit is contained in:
@@ -220,8 +220,6 @@ void render_display(struct obs_display *display)
|
||||
if (!display || !display->enabled)
|
||||
return;
|
||||
|
||||
GS_DEBUG_MARKER_BEGIN(GS_DEBUG_COLOR_DISPLAY, "obs_display");
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
pthread_mutex_lock(&display->draw_info_mutex);
|
||||
@@ -237,6 +235,8 @@ void render_display(struct obs_display *display)
|
||||
/* -------------------------------------------- */
|
||||
|
||||
if (render_display_begin(display, cx, cy, update_color_space)) {
|
||||
GS_DEBUG_MARKER_BEGIN(GS_DEBUG_COLOR_DISPLAY, "obs_display");
|
||||
|
||||
pthread_mutex_lock(&display->draw_callbacks_mutex);
|
||||
|
||||
for (size_t i = 0; i < display->draw_callbacks.num; i++) {
|
||||
@@ -250,10 +250,10 @@ void render_display(struct obs_display *display)
|
||||
|
||||
render_display_end();
|
||||
|
||||
GS_DEBUG_MARKER_END();
|
||||
|
||||
gs_present();
|
||||
}
|
||||
|
||||
GS_DEBUG_MARKER_END();
|
||||
}
|
||||
|
||||
void obs_display_set_enabled(obs_display_t *display, bool enable)
|
||||
|
||||
Reference in New Issue
Block a user