diff options
author | Fernando S <fsahmkow27@gmail.com> | 2021-07-09 21:45:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 21:45:45 +0200 |
commit | 7dca756f30242c6af5849856375129c561584049 (patch) | |
tree | 640de365e5b173c4a5734b60a02891e0dfaa32d0 /src/common | |
parent | Merge pull request #6581 from lat9nq/isolate-debug-settings (diff) | |
parent | settings, arm_dynarmic, yuzu qt: Move CPU debugging option (diff) | |
download | yuzu-7dca756f30242c6af5849856375129c561584049.tar yuzu-7dca756f30242c6af5849856375129c561584049.tar.gz yuzu-7dca756f30242c6af5849856375129c561584049.tar.bz2 yuzu-7dca756f30242c6af5849856375129c561584049.tar.lz yuzu-7dca756f30242c6af5849856375129c561584049.tar.xz yuzu-7dca756f30242c6af5849856375129c561584049.tar.zst yuzu-7dca756f30242c6af5849856375129c561584049.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/settings.cpp | 2 | ||||
-rw-r--r-- | src/common/settings.h | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 0061e29cc..e1973af85 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -93,7 +93,7 @@ bool IsGPULevelHigh() { } bool IsFastmemEnabled() { - if (values.cpu_accuracy.GetValue() == CPUAccuracy::DebugMode) { + if (values.cpu_debug_mode) { return static_cast<bool>(values.cpuopt_fastmem); } return true; diff --git a/src/common/settings.h b/src/common/settings.h index bf83186f5..d2e91a2c9 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -31,9 +31,9 @@ enum class GPUAccuracy : u32 { }; enum class CPUAccuracy : u32 { - Accurate = 0, - Unsafe = 1, - DebugMode = 2, + Auto = 0, + Accurate = 1, + Unsafe = 2, }; /** The BasicSetting class is a simple resource manager. It defines a label and default value @@ -284,7 +284,10 @@ struct Values { Setting<bool> use_multi_core{true, "use_multi_core"}; // Cpu - Setting<CPUAccuracy> cpu_accuracy{CPUAccuracy::Accurate, "cpu_accuracy"}; + Setting<CPUAccuracy> cpu_accuracy{CPUAccuracy::Auto, "cpu_accuracy"}; + // TODO: remove cpu_accuracy_first_time, migration setting added 8 July 2021 + BasicSetting<bool> cpu_accuracy_first_time{true, "cpu_accuracy_first_time"}; + BasicSetting<bool> cpu_debug_mode{false, "cpu_debug_mode"}; BasicSetting<bool> cpuopt_page_tables{true, "cpuopt_page_tables"}; BasicSetting<bool> cpuopt_block_linking{true, "cpuopt_block_linking"}; |