diff options
| author | 2020-07-14 12:38:03 -0400 | |
|---|---|---|
| committer | 2020-07-14 12:38:03 -0400 | |
| commit | e2730372b8b26bf3141bf91107f9982e270f751b (patch) | |
| tree | fb09276b0a1a736c6b106f1c6b51af9f97b3c307 /src/core/settings.h | |
| parent | Merge pull request #4282 from Morph1984/fs-size (diff) | |
| parent | configure_cpu: Split optimization settings off into Debug tab (diff) | |
| download | yuzu-e2730372b8b26bf3141bf91107f9982e270f751b.tar.gz yuzu-e2730372b8b26bf3141bf91107f9982e270f751b.tar.xz yuzu-e2730372b8b26bf3141bf91107f9982e270f751b.zip | |
Merge pull request #4294 from MerryMage/cpu-opt-settings
configuration: Add settings to enable/disable specific CPU optimizations
Diffstat (limited to 'src/core/settings.h')
| -rw-r--r-- | src/core/settings.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/core/settings.h b/src/core/settings.h index 29dc57c16..3eb336f75 100644 --- a/src/core/settings.h +++ b/src/core/settings.h | |||
| @@ -357,6 +357,11 @@ enum class GPUAccuracy : u32 { | |||
| 357 | Extreme = 2, | 357 | Extreme = 2, |
| 358 | }; | 358 | }; |
| 359 | 359 | ||
| 360 | enum class CPUAccuracy { | ||
| 361 | Accurate = 0, | ||
| 362 | DebugMode = 1, | ||
| 363 | }; | ||
| 364 | |||
| 360 | extern bool configuring_global; | 365 | extern bool configuring_global; |
| 361 | 366 | ||
| 362 | template <typename Type> | 367 | template <typename Type> |
| @@ -402,6 +407,18 @@ struct Values { | |||
| 402 | // Core | 407 | // Core |
| 403 | Setting<bool> use_multi_core; | 408 | Setting<bool> use_multi_core; |
| 404 | 409 | ||
| 410 | // Cpu | ||
| 411 | CPUAccuracy cpu_accuracy; | ||
| 412 | |||
| 413 | bool cpuopt_page_tables; | ||
| 414 | bool cpuopt_block_linking; | ||
| 415 | bool cpuopt_return_stack_buffer; | ||
| 416 | bool cpuopt_fast_dispatcher; | ||
| 417 | bool cpuopt_context_elimination; | ||
| 418 | bool cpuopt_const_prop; | ||
| 419 | bool cpuopt_misc_ir; | ||
| 420 | bool cpuopt_reduce_misalign_checks; | ||
| 421 | |||
| 405 | // Renderer | 422 | // Renderer |
| 406 | Setting<RendererBackend> renderer_backend; | 423 | Setting<RendererBackend> renderer_backend; |
| 407 | bool renderer_debug; | 424 | bool renderer_debug; |
| @@ -476,7 +493,6 @@ struct Values { | |||
| 476 | bool dump_nso; | 493 | bool dump_nso; |
| 477 | bool reporting_services; | 494 | bool reporting_services; |
| 478 | bool quest_flag; | 495 | bool quest_flag; |
| 479 | bool disable_cpu_opt; | ||
| 480 | bool disable_macro_jit; | 496 | bool disable_macro_jit; |
| 481 | 497 | ||
| 482 | // Misceallaneous | 498 | // Misceallaneous |