summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-10 01:00:44 +0100
committerGitHub <noreply@github.com>2023-12-10 01:00:44 +0100
commit8f9d5c314385d9717eef3854d88fb2effc3b2281 (patch)
tree1bc381bfa6411ed51781704bf3262d07be3821d1
parentMerge pull request #12289 from german77/aruid (diff)
parentsettings: Clearer NCE error messages (diff)
downloadyuzu-8f9d5c314385d9717eef3854d88fb2effc3b2281.tar
yuzu-8f9d5c314385d9717eef3854d88fb2effc3b2281.tar.gz
yuzu-8f9d5c314385d9717eef3854d88fb2effc3b2281.tar.bz2
yuzu-8f9d5c314385d9717eef3854d88fb2effc3b2281.tar.lz
yuzu-8f9d5c314385d9717eef3854d88fb2effc3b2281.tar.xz
yuzu-8f9d5c314385d9717eef3854d88fb2effc3b2281.tar.zst
yuzu-8f9d5c314385d9717eef3854d88fb2effc3b2281.zip
-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;
void SetNceEnabled(bool is_39bit) {
const bool is_nce_selected = values.cpu_backend.GetValue() == CpuBackend::Nce;
- is_nce_enabled = IsFastmemEnabled() && is_nce_selected && is_39bit;
- if (is_nce_selected && !is_nce_enabled) {
+ if (is_nce_selected && !IsFastmemEnabled()) {
+ LOG_WARNING(Common, "Fastmem is required to natively execute code in a performant manner, "
+ "falling back to Dynarmic");
+ }
+ if (is_nce_selected && !is_39bit) {
LOG_WARNING(
Common,
"Program does not utilize 39-bit address space, unable to natively execute code");
}
+ is_nce_enabled = IsFastmemEnabled() && is_nce_selected && is_39bit;
}
bool IsNceEnabled() {