diff options
| author | 2021-06-11 14:26:54 -0400 | |
|---|---|---|
| committer | 2021-06-11 14:26:54 -0400 | |
| commit | 9951322e5a37a604e185ae7013af7c4cfc5c35f8 (patch) | |
| tree | 6d765e2d635990de4acb98c1e2b6ce125546f629 /src/common/settings.cpp | |
| parent | Merge pull request #6443 from Morph1984/k-light-condition-variable (diff) | |
| parent | common/host_memory: Implement a fallback if fastmem fails. (diff) | |
| download | yuzu-9951322e5a37a604e185ae7013af7c4cfc5c35f8.tar.gz yuzu-9951322e5a37a604e185ae7013af7c4cfc5c35f8.tar.xz yuzu-9951322e5a37a604e185ae7013af7c4cfc5c35f8.zip | |
Merge pull request #6422 from FernandoS27/i-am-the-senate
Implement/Port Fastmem from Citra to Yuzu
Diffstat (limited to 'src/common/settings.cpp')
| -rw-r--r-- | src/common/settings.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index bcb4e4be1..360e878d6 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -90,6 +90,13 @@ bool IsGPULevelHigh() { | |||
| 90 | values.gpu_accuracy.GetValue() == GPUAccuracy::High; | 90 | values.gpu_accuracy.GetValue() == GPUAccuracy::High; |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | bool IsFastmemEnabled() { | ||
| 94 | if (values.cpu_accuracy.GetValue() == CPUAccuracy::DebugMode) { | ||
| 95 | return values.cpuopt_fastmem; | ||
| 96 | } | ||
| 97 | return true; | ||
| 98 | } | ||
| 99 | |||
| 93 | float Volume() { | 100 | float Volume() { |
| 94 | if (values.audio_muted) { | 101 | if (values.audio_muted) { |
| 95 | return 0.0f; | 102 | return 0.0f; |
| @@ -115,6 +122,7 @@ void RestoreGlobalState(bool is_powered_on) { | |||
| 115 | values.cpuopt_unsafe_unfuse_fma.SetGlobal(true); | 122 | values.cpuopt_unsafe_unfuse_fma.SetGlobal(true); |
| 116 | values.cpuopt_unsafe_reduce_fp_error.SetGlobal(true); | 123 | values.cpuopt_unsafe_reduce_fp_error.SetGlobal(true); |
| 117 | values.cpuopt_unsafe_inaccurate_nan.SetGlobal(true); | 124 | values.cpuopt_unsafe_inaccurate_nan.SetGlobal(true); |
| 125 | values.cpuopt_unsafe_fastmem_check.SetGlobal(true); | ||
| 118 | 126 | ||
| 119 | // Renderer | 127 | // Renderer |
| 120 | values.renderer_backend.SetGlobal(true); | 128 | values.renderer_backend.SetGlobal(true); |