diff options
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); |