mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-29 09:58:05 +00:00
[desktop, settings] new RendererHacks category, move to Extensions -> Extras, fix GPU accuracy naming (#3245)
added a new RendererHacks category, moved them to the Extensions tab and renamed that tab Extras. Should fit in smaller screens now also Performance -> Fast, GPU Accuracy -> GPU Mode Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3245 Reviewed-by: MaranBr <maranbr@eden-emu.dev>
This commit is contained in:
@@ -35,17 +35,9 @@ void ConfigureGraphicsAdvanced::SetConfiguration() {}
|
||||
|
||||
void ConfigureGraphicsAdvanced::Setup(const ConfigurationShared::Builder& builder) {
|
||||
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]) {
|
||||
@@ -61,11 +53,7 @@ void ConfigureGraphicsAdvanced::Setup(const ConfigurationShared::Builder& builde
|
||||
|
||||
const auto id = setting->Id();
|
||||
|
||||
if (hacks.contains(id)) {
|
||||
hacks_hold.emplace(id, widget);
|
||||
} else {
|
||||
normal_hold.emplace(id, widget);
|
||||
}
|
||||
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()) {
|
||||
@@ -76,10 +64,6 @@ void ConfigureGraphicsAdvanced::Setup(const ConfigurationShared::Builder& builde
|
||||
for (const auto& [id, widget] : normal_hold) {
|
||||
normal_layout.addWidget(widget);
|
||||
}
|
||||
|
||||
for (const auto& [id, widget] : hacks_hold) {
|
||||
hacks_layout.addWidget(widget);
|
||||
}
|
||||
}
|
||||
|
||||
void ConfigureGraphicsAdvanced::ApplyConfiguration() {
|
||||
|
||||
Reference in New Issue
Block a user