mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 17:21:15 +01:00
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:
1 parent
e07163600f
commit
5764d72b0e
28 files changed
+96
-32
No files matched your search
@@ -5,6 +5,9 @@ namespace ARMeilleure
|
||||
|
||||
public static class Optimizations
|
||||
{
|
||||
// low-core count PPTC
|
||||
public static bool EcoFriendly { get; set; } = false;
|
||||
|
||||
public static bool FastFP { get; set; } = true;
|
||||
|
||||
public static bool AllowLcqInFunctionTable { get; set; } = true;
|
||||
|
||||
@@ -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--;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user