diff options
| author | 2021-05-15 23:53:36 -0400 | |
|---|---|---|
| committer | 2021-05-16 01:31:42 -0400 | |
| commit | ab2677f0a1b898ad767109d0d8cd3d4fa237252c (patch) | |
| tree | f9861c664d697966f288febff801711c76f90dcd /src/common/settings.cpp | |
| parent | configuration: Simplify applying per-game settings (diff) | |
| download | yuzu-ab2677f0a1b898ad767109d0d8cd3d4fa237252c.tar.gz yuzu-ab2677f0a1b898ad767109d0d8cd3d4fa237252c.tar.xz yuzu-ab2677f0a1b898ad767109d0d8cd3d4fa237252c.zip | |
configuration: Add CPU tab to game properties
Allows setting CPU accuracy to Accurate or Unsafe per-game, as well as
the accuracy options for Unsafe. Debug is not allowed here as a per-game
CPU accuracy.
Diffstat (limited to 'src/common/settings.cpp')
| -rw-r--r-- | src/common/settings.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index b9a549c81..7c8fced59 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -106,6 +106,12 @@ void RestoreGlobalState(bool is_powered_on) { | |||
| 106 | // Core | 106 | // Core |
| 107 | values.use_multi_core.SetGlobal(true); | 107 | values.use_multi_core.SetGlobal(true); |
| 108 | 108 | ||
| 109 | // CPU | ||
| 110 | values.cpu_accuracy.SetGlobal(true); | ||
| 111 | values.cpuopt_unsafe_unfuse_fma.SetGlobal(true); | ||
| 112 | values.cpuopt_unsafe_reduce_fp_error.SetGlobal(true); | ||
| 113 | values.cpuopt_unsafe_inaccurate_nan.SetGlobal(true); | ||
| 114 | |||
| 109 | // Renderer | 115 | // Renderer |
| 110 | values.renderer_backend.SetGlobal(true); | 116 | values.renderer_backend.SetGlobal(true); |
| 111 | values.vulkan_device.SetGlobal(true); | 117 | values.vulkan_device.SetGlobal(true); |