From c452609718b260bc118d67f79f3e25ead13321b5 Mon Sep 17 00:00:00 2001 From: jackun Date: Mon, 27 Sep 2021 14:52:47 +0300 Subject: [PATCH] Fix hw update thread waiting for initial update signal --- src/overlay.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/overlay.cpp b/src/overlay.cpp index fe512a4..9e214f9 100644 --- a/src/overlay.cpp +++ b/src/overlay.cpp @@ -163,8 +163,7 @@ void update_hud_info(struct swapchain_stats& sw_stats, struct overlay_params& pa if (elapsed >= params.fps_sampling_period) { if (!hw_update_thread) hw_update_thread = std::make_unique(sw_stats, params, vendorID); - else - hw_update_thread->update(); + hw_update_thread->update(); sw_stats.fps = fps;