Add a config entry to enable or disable the reg load/store opt.
This commit is contained in:
parent
18678035f5
commit
930ff8ff01
4 changed files with 32 additions and 8 deletions
|
@ -2,7 +2,7 @@ using System.Runtime.Intrinsics.X86;
|
||||||
|
|
||||||
public static class Optimizations
|
public static class Optimizations
|
||||||
{
|
{
|
||||||
public static bool AssumeStrictAbiCompliance { get; set; } = true;
|
public static bool AssumeStrictAbiCompliance { get; set; }
|
||||||
|
|
||||||
public static bool FastFP { get; set; } = true;
|
public static bool FastFP { get; set; } = true;
|
||||||
|
|
||||||
|
|
|
@ -29,18 +29,21 @@
|
||||||
// System Language list: https://gist.github.com/HorrorTroll/b6e4a88d774c3c9b3bdf54d79a7ca43b
|
// System Language list: https://gist.github.com/HorrorTroll/b6e4a88d774c3c9b3bdf54d79a7ca43b
|
||||||
"system_language": "AmericanEnglish",
|
"system_language": "AmericanEnglish",
|
||||||
|
|
||||||
// Enable or Disable Docked Mode
|
// Enable or disable Docked Mode
|
||||||
"docked_mode": false,
|
"docked_mode": false,
|
||||||
|
|
||||||
// Enable or Disable Game Vsync
|
// Enable or disable Game Vsync
|
||||||
"enable_vsync": true,
|
"enable_vsync": true,
|
||||||
|
|
||||||
// Enable or Disable Multi-core scheduling of threads
|
// Enable or disable Multi-core scheduling of threads
|
||||||
"enable_multicore_scheduling": true,
|
"enable_multicore_scheduling": true,
|
||||||
|
|
||||||
// Enable integrity checks on Switch content files
|
// Enable integrity checks on Switch content files
|
||||||
"enable_fs_integrity_checks": true,
|
"enable_fs_integrity_checks": true,
|
||||||
|
|
||||||
|
// Enable or disable aggressive CPU optimizations
|
||||||
|
"enable_aggressive_cpu_opts": true,
|
||||||
|
|
||||||
// The primary controller's type
|
// The primary controller's type
|
||||||
// Supported Values: Handheld, ProController, NpadPair, NpadLeft, NpadRight
|
// Supported Values: Handheld, ProController, NpadPair, NpadLeft, NpadRight
|
||||||
"controller_type": "Handheld",
|
"controller_type": "Handheld",
|
||||||
|
|
|
@ -86,6 +86,11 @@ namespace Ryujinx
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool EnableFsIntegrityChecks { get; private set; }
|
public bool EnableFsIntegrityChecks { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Enable or Disable aggressive CPU optimizations
|
||||||
|
/// </summary>
|
||||||
|
public bool EnableAggressiveCpuOpts { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The primary controller's type
|
/// The primary controller's type
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -197,6 +202,11 @@ namespace Ryujinx
|
||||||
? IntegrityCheckLevel.ErrorOnInvalid
|
? IntegrityCheckLevel.ErrorOnInvalid
|
||||||
: IntegrityCheckLevel.None;
|
: IntegrityCheckLevel.None;
|
||||||
|
|
||||||
|
if (Instance.EnableAggressiveCpuOpts)
|
||||||
|
{
|
||||||
|
Optimizations.AssumeStrictAbiCompliance = true;
|
||||||
|
}
|
||||||
|
|
||||||
if(Instance.GamepadControls.Enabled)
|
if(Instance.GamepadControls.Enabled)
|
||||||
{
|
{
|
||||||
if (GamePad.GetName(Instance.GamepadControls.Index) == "Unmapped Controller")
|
if (GamePad.GetName(Instance.GamepadControls.Index) == "Unmapped Controller")
|
||||||
|
|
|
@ -399,6 +399,17 @@
|
||||||
false
|
false
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"enable_aggressive_cpu_opts": {
|
||||||
|
"$id": "#/properties/enable_aggressive_cpu_opts",
|
||||||
|
"type": "boolean",
|
||||||
|
"title": "Enable Aggressive CPU Optimizations",
|
||||||
|
"description": "Enable or disable aggressive CPU optimizations",
|
||||||
|
"default": true,
|
||||||
|
"examples": [
|
||||||
|
true,
|
||||||
|
false
|
||||||
|
]
|
||||||
|
},
|
||||||
"controller_type": {
|
"controller_type": {
|
||||||
"$id": "#/properties/controller_type",
|
"$id": "#/properties/controller_type",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue