From f980c598604961507f0fd0f3cac1f809ba2e29d3 Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi <18193363+elad335@users.noreply.github.com> Date: Sat, 10 Aug 2024 15:12:44 +0300 Subject: [PATCH] Do not add usage stats for unused SPU programs --- rpcs3/Emu/System.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 218677aeba..abdd8046f3 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -3541,6 +3541,13 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s const u64 hash_val = read_from_ptr>(result.data) & -65536; const f64 usage = get_cpu_program_usage_percent(hash_val); + + if (usage == 0) + { + iter = index + 1; + continue; + } + const std::string text_append = fmt::format("usage %%%g, ", usage); new_log.insert(new_log.begin() + seperator + out_added + 2, text_append.begin(), text_append.end());