mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-13 06:09:11 +00:00
Move caching to intialization so that the GetPhysicalCoreCount is not called every time.
This commit is contained in:
parent
50f945c18b
commit
83ce40af2e
1 changed files with 2 additions and 1 deletions
|
@ -71,6 +71,8 @@ namespace ARMeilleure.Translation
|
|||
_oldFuncs = new ConcurrentQueue<KeyValuePair<ulong, TranslatedFunction>>();
|
||||
|
||||
_ptc = new Ptc();
|
||||
|
||||
_physicalCoreCount = SystemInfo.GetPhysicalCoreCount();
|
||||
|
||||
Queue = new TranslatorQueue();
|
||||
|
||||
|
@ -121,7 +123,6 @@ namespace ARMeilleure.Translation
|
|||
|
||||
_ptc.Disable();
|
||||
|
||||
_physicalCoreCount = SystemInfo.GetPhysicalCoreCount();
|
||||
|
||||
// Simple heuristic, should be user configurable in future. (1 for 4 core/ht or less, 2 for 6 core + ht
|
||||
// etc). All threads are normal priority except from the last, which just fills as much of the last core
|
||||
|
|
Loading…
Reference in a new issue