android: config: Change docked mode and GPU accuracy to favor performance on Android.

This commit is contained in:
bunnei 2023-04-09 19:39:38 -07:00
parent dc52152a81
commit 30bf5d5b07
3 changed files with 11 additions and 7 deletions

View File

@ -158,7 +158,7 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
dockedMode,
R.string.use_docked_mode,
R.string.use_docked_mode_description,
true,
false,
)
)
add(
@ -223,7 +223,7 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
0,
R.array.rendererAccuracyNames,
R.array.rendererAccuracyValues,
1
0
)
)
add(

View File

@ -139,12 +139,13 @@ void Config::ReadValues() {
ReadSetting("Data Storage", Settings::values.gamecard_path);
// System
ReadSetting("System", Settings::values.use_docked_mode);
ReadSetting("System", Settings::values.current_user);
Settings::values.current_user = std::clamp<int>(Settings::values.current_user.GetValue(), 0,
Service::Account::MAX_USERS - 1);
// Disable docked mode by default on Android
Settings::values.use_docked_mode = config->GetBoolean("System", "use_docked_mode", false);
const auto rng_seed_enabled = config->GetBoolean("System", "rng_seed_enabled", false);
if (rng_seed_enabled) {
Settings::values.rng_seed.SetValue(config->GetInteger("System", "rng_seed", 0));
@ -208,7 +209,6 @@ void Config::ReadValues() {
ReadSetting("Renderer", Settings::values.use_speed_limit);
ReadSetting("Renderer", Settings::values.speed_limit);
ReadSetting("Renderer", Settings::values.use_disk_shader_cache);
ReadSetting("Renderer", Settings::values.gpu_accuracy);
ReadSetting("Renderer", Settings::values.use_asynchronous_gpu_emulation);
ReadSetting("Renderer", Settings::values.vsync_mode);
ReadSetting("Renderer", Settings::values.shader_backend);
@ -218,6 +218,10 @@ void Config::ReadValues() {
ReadSetting("Renderer", Settings::values.use_fast_gpu_time);
ReadSetting("Renderer", Settings::values.use_vulkan_driver_pipeline_cache);
// Use GPU accuracy normal by default on Android
Settings::values.gpu_accuracy = static_cast<Settings::GPUAccuracy>(config->GetInteger(
"Renderer", "gpu_accuracy", static_cast<u32>(Settings::GPUAccuracy::Normal)));
ReadSetting("Renderer", Settings::values.bg_red);
ReadSetting("Renderer", Settings::values.bg_green);
ReadSetting("Renderer", Settings::values.bg_blue);

View File

@ -345,7 +345,7 @@ speed_limit =
use_disk_shader_cache =
# Which gpu accuracy level to use
# 0: Normal, 1 (default): High, 2: Extreme (Very slow)
# 0 (default): Normal, 1: High, 2: Extreme (Very slow)
gpu_accuracy =
# Whether to use asynchronous GPU emulation
@ -388,7 +388,7 @@ volume =
[Data Storage]
# Whether to create a virtual SD card.
# 1 (default): Yes, 0: No
# 1: Yes, 0 (default): No
use_virtual_sd =
# Whether or not to enable gamecard emulation