From 1e6c180690ac42c2c4ab437c476a32b9ff8890b6 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sun, 22 Jan 2023 01:10:19 +0100 Subject: [PATCH] overlays: don't flip if the overlay is invisible --- rpcs3/Emu/RSX/Overlays/overlays.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcs3/Emu/RSX/Overlays/overlays.cpp b/rpcs3/Emu/RSX/Overlays/overlays.cpp index c5f9e9449e..140efee96c 100644 --- a/rpcs3/Emu/RSX/Overlays/overlays.cpp +++ b/rpcs3/Emu/RSX/Overlays/overlays.cpp @@ -401,6 +401,11 @@ namespace rsx void overlay::refresh() const { + if (!visible) + { + return; + } + if (auto rsxthr = rsx::get_current_renderer(); rsxthr && (min_refresh_duration_us + rsxthr->last_host_flip_timestamp) < rsx::uclock()) {