mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 14:31:24 +12:00
Do not add usage stats for unused SPU programs
This commit is contained in:
parent
6c791541ee
commit
f980c59860
1 changed files with 7 additions and 0 deletions
|
@ -3541,6 +3541,13 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
|
||||||
|
|
||||||
const u64 hash_val = read_from_ptr<be_t<u64>>(result.data) & -65536;
|
const u64 hash_val = read_from_ptr<be_t<u64>>(result.data) & -65536;
|
||||||
const f64 usage = get_cpu_program_usage_percent(hash_val);
|
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);
|
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());
|
new_log.insert(new_log.begin() + seperator + out_added + 2, text_append.begin(), text_append.end());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue