debug: add CLI option to have multi-core interpreter (#1553)

This option still allows you to have proper stack traces for crashes or for the PPC debugger, but is a lot faster then the really slow interpreter (especially when loading into large games like BotW where there has to be a lot of asset decompressing). It makes memory access breakpoints much more brittle though, so it's not a perfect option.

Normal users should of course stick with using the recompiler.
This commit is contained in:
Crementif 2025-05-04 18:04:26 +02:00 committed by GitHub
parent d083fc0470
commit 352a918494
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 4 deletions

View file

@ -26,6 +26,7 @@ public:
static bool NSightModeEnabled() { return s_nsight_mode; }
static bool ForceInterpreter() { return s_force_interpreter; };
static bool ForceMultiCoreInterpreter() { return s_force_multicore_interpreter; }
static std::optional<uint32> GetPersistentId() { return s_persistent_id; }
@ -44,6 +45,7 @@ private:
inline static bool s_nsight_mode = false;
inline static bool s_force_interpreter = false;
inline static bool s_force_multicore_interpreter = false;
inline static std::optional<uint32> s_persistent_id{};