mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Merge pull request #16925 from unknownbrackets/ios-force-ir
iOS: Disable jit in DefaultCpuCore()
This commit is contained in:
3 files changed
+5
-12
No files matched your search
+5
-3
@@ -60,7 +60,7 @@ http::Downloader g_DownloadManager;
|
||||
|
||||
Config g_Config;
|
||||
|
||||
bool jitForcedOff;
|
||||
static bool jitForcedOff;
|
||||
|
||||
// Not in Config.h because it's #included a lot.
|
||||
struct ConfigPrivate {
|
||||
@@ -477,9 +477,11 @@ std::string CreateRandMAC() {
|
||||
|
||||
static int DefaultCpuCore() {
|
||||
#if PPSSPP_ARCH(ARM) || PPSSPP_ARCH(ARM64) || PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64)
|
||||
return (int)CPUCore::JIT;
|
||||
if (System_GetPropertyBool(SYSPROP_CAN_JIT))
|
||||
return (int)CPUCore::JIT;
|
||||
return (int)CPUCore::IR_JIT;
|
||||
#else
|
||||
return (int)CPUCore::INTERPRETER;
|
||||
return (int)CPUCore::IR_JIT;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
|
||||
extern const char *PPSSPP_GIT_VERSION;
|
||||
|
||||
extern bool jitForcedOff;
|
||||
|
||||
enum ChatPositions {
|
||||
BOTTOM_LEFT = 0,
|
||||
BOTTOM_CENTER = 1,
|
||||
|
||||
@@ -758,13 +758,6 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||
}
|
||||
}
|
||||
|
||||
if (System_GetPropertyBool(SYSPROP_CAN_JIT) == false && g_Config.iCpuCore == (int)CPUCore::JIT) {
|
||||
// Just gonna force it to the IR interpreter on startup.
|
||||
// We don't hide the option, but we make sure it's off on bootup. In case someone wants
|
||||
// to experiment in future iOS versions or something...
|
||||
jitForcedOff = true;
|
||||
}
|
||||
|
||||
auto des = GetI18NCategory("DesktopUI");
|
||||
// Note to translators: do not translate this/add this to PPSSPP-lang's files.
|
||||
// It's intended to be custom for every user.
|
||||
|
||||
Reference in new issue
Block a user