VMManager: Increase software thread count on multicore (4+) CPUs

3 is a nice compromise if you have 4 core or more but for some games higher numbers like 8 or even higher would work, however for a lot of games it would perhaps even reduce the performance compared to 3 software rendering threads or in more likelihood have diminishing returns.

Keep in mind that this is just a general situation, in actual use it might be less extra performance (if at all) as you have expected.
This commit is contained in:
RedDevilus 2023-01-09 16:44:16 +01:00 committed by refractionpcsx2
parent d28b2fa057
commit fa75006ca9
1 changed files with 6 additions and 2 deletions

View File

@ -2120,14 +2120,18 @@ static void SetMTVUAndAffinityControlDefault(SettingsInterface& si)
if (big_cores >= 3)
{
Console.WriteLn(" So enabling MTVU.");
Console.WriteLn(" Enabling MTVU.");
si.SetBoolValue("EmuCore/Speedhacks", "vuThread", true);
}
else
{
Console.WriteLn(" So disabling MTVU.");
Console.WriteLn(" Disabling MTVU.");
si.SetBoolValue("EmuCore/Speedhacks", "vuThread", false);
}
const int extra_threads = (big_cores > 3) ? 3 : 2;
Console.WriteLn(" Setting Extra Software Rendering Threads to %d.", extra_threads);
si.SetIntValue("EmuCore/GS", "extrathreads", extra_threads);
}
#else