diff options
| author | crueter <crueter@eden-emu.dev> | 2025-12-30 18:03:09 +0100 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-12-30 18:03:09 +0100 |
| commit | e4cbcec2f10b1d03626eb0c79971eb6272fd6e87 (patch) | |
| tree | 5514b04206e0ac76ebde0132b89473b2b9700606 /src/yuzu/configuration/configure_graphics_advanced.cpp | |
| parent | 006f97f207acd7d5fb5c32318f059c0929252511 (diff) | |
[settings, frontend] Reorganize graphics/CPU settings, saner defaults (#3233)
- Fast GPU now defaults to 256, removed 128 since it's useless.
- Completely reorganized graphics and CPU settings on both platforms.
Also got rid of Eden's Veil
- Merged some "use ..." settings that weren't really necessary.
- Changed ExtendedDynamicState to be a combo box
Signed-off-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3233
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: DraVee <dravee@eden-emu.dev>
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/yuzu/configuration/configure_graphics_advanced.cpp')
| -rw-r--r-- | src/yuzu/configuration/configure_graphics_advanced.cpp | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/src/yuzu/configuration/configure_graphics_advanced.cpp b/src/yuzu/configuration/configure_graphics_advanced.cpp index 8288e2d755..efcf7eabdf 100644 --- a/src/yuzu/configuration/configure_graphics_advanced.cpp +++ b/src/yuzu/configuration/configure_graphics_advanced.cpp @@ -34,8 +34,18 @@ ConfigureGraphicsAdvanced::~ConfigureGraphicsAdvanced() = default; void ConfigureGraphicsAdvanced::SetConfiguration() {} void ConfigureGraphicsAdvanced::Setup(const ConfigurationShared::Builder& builder) { - auto& layout = *ui->populate_target->layout(); - std::map<u32, QWidget*> hold{}; // A map will sort the data for us + auto& normal_layout = *ui->normal_target->layout(); + auto& hacks_layout = *ui->hacks_target->layout(); + + // A map will sort the data for us + std::map<u32, QWidget*> normal_hold{}; + std::map<u32, QWidget*> hacks_hold{}; + + // These options are hacks and should probably be changed with caution. + // TODO(crueter) maybe make a separate category RendererHacks? + QList<u32> hacks = { + Settings::values.skip_cpu_inner_invalidation.Id(), Settings::values.async_presentation.Id(), + Settings::values.use_asynchronous_shaders.Id(), Settings::values.fast_gpu_time.Id()}; for (auto setting : Settings::values.linkage.by_category[Settings::Category::RendererAdvanced]) { @@ -49,15 +59,26 @@ void ConfigureGraphicsAdvanced::Setup(const ConfigurationShared::Builder& builde continue; } - hold.emplace(setting->Id(), widget); + const auto id = setting->Id(); + + if (hacks.contains(id)) { + hacks_hold.emplace(id, widget); + } else { + normal_hold.emplace(id, widget); + } // Keep track of enable_compute_pipelines so we can display it when needed if (setting->Id() == Settings::values.enable_compute_pipelines.Id()) { checkbox_enable_compute_pipelines = widget; } } - for (const auto& [id, widget] : hold) { - layout.addWidget(widget); + + for (const auto& [id, widget] : normal_hold) { + normal_layout.addWidget(widget); + } + + for (const auto& [id, widget] : hacks_hold) { + hacks_layout.addWidget(widget); } } |
