CPU: Add low-power PPTC load mode.

* Specifically, this setting causes the translation load core count to get reduced by two-thirds, for lower-power but still fast loading, and for unstable CPUs.

I18n: Move low-power PPTC strings into translation files & add german version.
This commit is contained in:
Evan Husted
2024-10-23 15:28:55 -05:00
committed by KeatonTheBot
parent e07163600f
commit 5764d72b0e
28 changed files with 96 additions and 32 deletions
+6 -1
View File
@@ -795,10 +795,15 @@ namespace ARMeilleure.Translation.PTC
return;
}
int degreeOfParallelism = Environment.ProcessorCount;
if (Optimizations.EcoFriendly)
degreeOfParallelism /= 3;
// If there are enough cores lying around, we leave one alone for other tasks.
if (degreeOfParallelism > 4)
if (degreeOfParallelism > 4 && !Optimizations.EcoFriendly)
{
degreeOfParallelism--;
}