summaryrefslogtreecommitdiff
path: root/src/core/settings.h
diff options
context:
space:
mode:
authorGravatar bunnei2020-07-14 12:38:03 -0400
committerGravatar GitHub2020-07-14 12:38:03 -0400
commite2730372b8b26bf3141bf91107f9982e270f751b (patch)
treefb09276b0a1a736c6b106f1c6b51af9f97b3c307 /src/core/settings.h
parentMerge pull request #4282 from Morph1984/fs-size (diff)
parentconfigure_cpu: Split optimization settings off into Debug tab (diff)
downloadyuzu-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.h18
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
360enum class CPUAccuracy {
361 Accurate = 0,
362 DebugMode = 1,
363};
364
360extern bool configuring_global; 365extern bool configuring_global;
361 366
362template <typename Type> 367template <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