aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-09 19:00:44 -0500
committerGitHub <noreply@github.com>2023-12-09 19:00:44 -0500
commitf6ad2abec5035e136cef2d407ac0a4e8e1396ffe (patch)
tree1bc381bfa6411ed51781704bf3262d07be3821d1 /src
parentc673c3d01936e964f0516def9417349e319c2deb (diff)
parent7ab4cb1910e7b94f7a3bcce42ac2f1d2df7d4109 (diff)
Merge pull request #12325 from GPUCode/better-nce-message
settings: Clearer NCE error messages
Diffstat (limited to 'src')
-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 4666bd0a0b..88f509ba78 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() {