summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar GPUCode2023-12-09 23:37:14 +0200
committerGravatar GPUCode2023-12-09 23:37:14 +0200
commitdc0fb56f3ae9e02a558ce65e48219b58d53346eb (patch)
tree1bc381bfa6411ed51781704bf3262d07be3821d1 /src/common
parentMerge pull request #12289 from german77/aruid (diff)
downloadyuzu-dc0fb56f3ae9e02a558ce65e48219b58d53346eb.tar.gz
yuzu-dc0fb56f3ae9e02a558ce65e48219b58d53346eb.tar.xz
yuzu-dc0fb56f3ae9e02a558ce65e48219b58d53346eb.zip
settings: Clearer NCE error messages
Diffstat (limited to '')
-rw-r--r--src/common/settings.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 4666bd0a0..88f509ba7 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -160,12 +160,16 @@ static bool is_nce_enabled = false;
160 160
161void SetNceEnabled(bool is_39bit) { 161void SetNceEnabled(bool is_39bit) {
162 const bool is_nce_selected = values.cpu_backend.GetValue() == CpuBackend::Nce; 162 const bool is_nce_selected = values.cpu_backend.GetValue() == CpuBackend::Nce;
163 is_nce_enabled = IsFastmemEnabled() && is_nce_selected && is_39bit; 163 if (is_nce_selected && !IsFastmemEnabled()) {
164 if (is_nce_selected && !is_nce_enabled) { 164 LOG_WARNING(Common, "Fastmem is required to natively execute code in a performant manner, "
165 "falling back to Dynarmic");
166 }
167 if (is_nce_selected && !is_39bit) {
165 LOG_WARNING( 168 LOG_WARNING(
166 Common, 169 Common,
167 "Program does not utilize 39-bit address space, unable to natively execute code"); 170 "Program does not utilize 39-bit address space, unable to natively execute code");
168 } 171 }
172 is_nce_enabled = IsFastmemEnabled() && is_nce_selected && is_39bit;
169} 173}
170 174
171bool IsNceEnabled() { 175bool IsNceEnabled() {