From d4485350212bea5d709d3b63802ade04c784b563 Mon Sep 17 00:00:00 2001 From: otavepto Date: Fri, 8 Mar 2024 22:19:12 +0200 Subject: [PATCH] stop frame processing on exit --- overlay_experimental/steam_overlay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index 0366fd76..0b4255b0 100644 --- a/overlay_experimental/steam_overlay.cpp +++ b/overlay_experimental/steam_overlay.cpp @@ -1249,6 +1249,9 @@ void Steam_Overlay::UnSetupOverlay() if (setup_overlay_called.compare_exchange_weak(already_called, false)) { is_ready = false; + // stop internal frame processing + if (_renderer) _renderer->HideOverlayInputs(true); + // allow the future_renderer thread to exit if needed // std::this_thread::sleep_for(std::chrono::milliseconds((int)(renderer_detector_polling_ms * 1.3f))); common_helpers::thisThreadYieldFor(