From 4a7c4f1a71feae51fb4125b9ccbcdf1746b51845 Mon Sep 17 00:00:00 2001 From: FearlessTobi Date: Tue, 27 Feb 2024 01:39:25 +0100 Subject: [PATCH] settings: Move GPU options from General to Advanced These are not for the users to mess with in most cases, so they should be somewhere else. --- src/common/settings.h | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/common/settings.h b/src/common/settings.h index 61969af2bf..7611f54043 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -273,27 +273,10 @@ struct Values { "shader_backend", Category::Renderer, Specialization::RuntimeList}; SwitchableSetting vulkan_device{linkage, 0, "vulkan_device", Category::Renderer, Specialization::RuntimeList}; - - SwitchableSetting use_disk_shader_cache{linkage, true, "use_disk_shader_cache", - Category::Renderer}; - SwitchableSetting use_asynchronous_gpu_emulation{ - linkage, true, "use_asynchronous_gpu_emulation", Category::Renderer}; - SwitchableSetting accelerate_astc{linkage, -#ifdef ANDROID - AstcDecodeMode::Cpu, -#else - AstcDecodeMode::Gpu, -#endif - AstcDecodeMode::Cpu, - AstcDecodeMode::CpuAsynchronous, - "accelerate_astc", - Category::Renderer}; SwitchableSetting vsync_mode{ linkage, VSyncMode::Fifo, VSyncMode::Immediate, VSyncMode::FifoRelaxed, "use_vsync", Category::Renderer, Specialization::RuntimeList, true, true}; - SwitchableSetting nvdec_emulation{linkage, NvdecEmulation::Gpu, - "nvdec_emulation", Category::Renderer}; // *nix platforms may have issues with the borderless windowed fullscreen mode. // Default to exclusive fullscreen on these platforms for now. SwitchableSetting fullscreen_mode{linkage, @@ -378,6 +361,17 @@ struct Values { AnisotropyMode::X16, "max_anisotropy", Category::RendererAdvanced}; + SwitchableSetting accelerate_astc{linkage, +#ifdef ANDROID + AstcDecodeMode::Cpu, +#else + AstcDecodeMode::Gpu, +#endif + AstcDecodeMode::Cpu, + AstcDecodeMode::CpuAsynchronous, + "accelerate_astc", + Category::RendererAdvanced}; + SwitchableSetting nvdec_emulation{linkage, NvdecEmulation::Gpu, "nvdec_emulation", Category::RendererAdvanced}; SwitchableSetting astc_recompression{linkage, AstcRecompression::Uncompressed, AstcRecompression::Uncompressed, @@ -390,6 +384,10 @@ struct Values { VramUsageMode::Aggressive, "vram_usage_mode", Category::RendererAdvanced}; + SwitchableSetting use_disk_shader_cache{linkage, true, "use_disk_shader_cache", + Category::RendererAdvanced}; + SwitchableSetting use_asynchronous_gpu_emulation{ + linkage, true, "use_asynchronous_gpu_emulation", Category::RendererAdvanced}; SwitchableSetting async_presentation{linkage, #ifdef ANDROID true,