mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-13 06:09:11 +00:00
Maintain functionality similar to master up to 6 cores >6 cores will make more threads.
This commit is contained in:
parent
e8af9144c7
commit
f2847753dc
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ namespace ARMeilleure.Translation
|
|||
// etc). All threads are normal priority except from the last, which just fills as much of the last core
|
||||
// as the os lets it with a low priority. If we only have one rejit thread, it should be normal priority
|
||||
// as highCq code is performance critical.
|
||||
int unboundedThreadCount = Math.Max(1, (_physicalCoreCount - 6) / 3);
|
||||
int unboundedThreadCount = Math.Max(1, (_physicalCoreCount - 4));
|
||||
int threadCount = Math.Min(4, unboundedThreadCount);
|
||||
|
||||
Thread[] backgroundTranslationThreads = new Thread[threadCount];
|
||||
|
|
Loading…
Reference in a new issue