summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-05-07 22:20:39 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:06:00 +0200
commit6b093224c1fce779d89fed560fddfc95f619339d (patch)
tree11fddac407b71cf5fb8a531490cc93679c035f91 /src
parentandroid: video_core: Disable problematic compute shaders. (diff)
downloadyuzu-6b093224c1fce779d89fed560fddfc95f619339d.tar
yuzu-6b093224c1fce779d89fed560fddfc95f619339d.tar.gz
yuzu-6b093224c1fce779d89fed560fddfc95f619339d.tar.bz2
yuzu-6b093224c1fce779d89fed560fddfc95f619339d.tar.lz
yuzu-6b093224c1fce779d89fed560fddfc95f619339d.tar.xz
yuzu-6b093224c1fce779d89fed560fddfc95f619339d.tar.zst
yuzu-6b093224c1fce779d89fed560fddfc95f619339d.zip
Diffstat (limited to 'src')
-rw-r--r--src/android/app/src/main/jni/config.cpp5
-rw-r--r--src/android/app/src/main/jni/default_ini.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/android/app/src/main/jni/config.cpp b/src/android/app/src/main/jni/config.cpp
index 34aa1ee4c..625f67333 100644
--- a/src/android/app/src/main/jni/config.cpp
+++ b/src/android/app/src/main/jni/config.cpp
@@ -210,7 +210,6 @@ void Config::ReadValues() {
ReadSetting("Renderer", Settings::values.speed_limit);
ReadSetting("Renderer", Settings::values.use_disk_shader_cache);
ReadSetting("Renderer", Settings::values.use_asynchronous_gpu_emulation);
- ReadSetting("Renderer", Settings::values.vsync_mode);
ReadSetting("Renderer", Settings::values.shader_backend);
ReadSetting("Renderer", Settings::values.use_asynchronous_shaders);
ReadSetting("Renderer", Settings::values.nvdec_emulation);
@@ -222,6 +221,10 @@ void Config::ReadValues() {
Settings::values.gpu_accuracy = static_cast<Settings::GPUAccuracy>(config->GetInteger(
"Renderer", "gpu_accuracy", static_cast<u32>(Settings::GPUAccuracy::Normal)));
+ // Use Mailbox VSync by default on Android.
+ Settings::values.vsync_mode = static_cast<Settings::VSyncMode>(config->GetInteger(
+ "Renderer", "use_vsync", static_cast<u32>(Settings::VSyncMode::Mailbox)));
+
ReadSetting("Renderer", Settings::values.bg_red);
ReadSetting("Renderer", Settings::values.bg_green);
ReadSetting("Renderer", Settings::values.bg_blue);
diff --git a/src/android/app/src/main/jni/default_ini.h b/src/android/app/src/main/jni/default_ini.h
index da541851e..c5dfaff54 100644
--- a/src/android/app/src/main/jni/default_ini.h
+++ b/src/android/app/src/main/jni/default_ini.h
@@ -316,7 +316,7 @@ max_anisotropy =
# FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
# Mailbox can have lower latency than FIFO and does not tear but may drop frames.
# Immediate (no synchronization) just presents whatever is available and can exhibit tearing.
-# 0: Immediate (Off), 1: Mailbox, 2 (Default): FIFO (On), 3: FIFO Relaxed
+# 0: Immediate (Off), 1 (Default): Mailbox (On), 2: FIFO, 3: FIFO Relaxed
use_vsync =
# Selects the OpenGL shader backend. NV_gpu_program5 is required for GLASM. If NV_gpu_program5 is