1
0
Fork 0
mirror of https://github.com/Detanup01/gbe_fork.git synced 2025-09-10 12:03:06 +02:00

stop frame processing on exit

This commit is contained in:
otavepto 2024-03-08 22:19:12 +02:00
parent 5447940ed1
commit d448535021

View file

@ -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(