From bb59dfd060782deb2e816da082f1ed38380ec6d3 Mon Sep 17 00:00:00 2001 From: wangshaohui Date: Fri, 24 Dec 2021 10:06:13 +0800 Subject: [PATCH] libobs: Move position for calling execute_graphics_tasks The new order is as below: [message pump] output_frame render_displays execute_graphics_tasks --- libobs/obs-video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libobs/obs-video.c b/libobs/obs-video.c index 6c33ef481..7921e578c 100644 --- a/libobs/obs-video.c +++ b/libobs/obs-video.c @@ -964,8 +964,6 @@ bool obs_graphics_thread_loop(struct obs_graphics_context *context) tick_sources(obs->video.video_time, context->last_time); profile_end(tick_sources_name); - execute_graphics_tasks(); - #ifdef _WIN32 MSG msg; while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { @@ -982,6 +980,8 @@ bool obs_graphics_thread_loop(struct obs_graphics_context *context) render_displays(); profile_end(render_displays_name); + execute_graphics_tasks(); + frame_time_ns = os_gettime_ns() - frame_start; profile_end(context->video_thread_name);