From fa75006ca9a21bffaf89354fb78d15cf0c8005f6 Mon Sep 17 00:00:00 2001 From: RedDevilus Date: Mon, 9 Jan 2023 16:44:16 +0100 Subject: [PATCH] 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. --- pcsx2/VMManager.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pcsx2/VMManager.cpp b/pcsx2/VMManager.cpp index cab3503428..2d66b764f2 100644 --- a/pcsx2/VMManager.cpp +++ b/pcsx2/VMManager.cpp @@ -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