From 83df785558042a3ff92c8369bc9b3477dcb89484 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 26 May 2024 22:24:09 +1000 Subject: [PATCH] Settings: Default threaded presentation to off --- src/core/settings.cpp | 2 +- src/core/settings.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/settings.cpp b/src/core/settings.cpp index 231f8fd5a..31a452dfb 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp @@ -193,7 +193,7 @@ void Settings::Load(SettingsInterface& si) gpu_per_sample_shading = si.GetBoolValue("GPU", "PerSampleShading", false); gpu_use_thread = si.GetBoolValue("GPU", "UseThread", true); gpu_use_software_renderer_for_readbacks = si.GetBoolValue("GPU", "UseSoftwareRendererForReadbacks", false); - gpu_threaded_presentation = si.GetBoolValue("GPU", "ThreadedPresentation", true); + gpu_threaded_presentation = si.GetBoolValue("GPU", "ThreadedPresentation", DEFAULT_THREADED_PRESENTATION); gpu_true_color = si.GetBoolValue("GPU", "TrueColor", true); gpu_debanding = si.GetBoolValue("GPU", "Debanding", false); gpu_scaled_dithering = si.GetBoolValue("GPU", "ScaledDithering", true); diff --git a/src/core/settings.h b/src/core/settings.h index d808f9234..92d4ea011 100644 --- a/src/core/settings.h +++ b/src/core/settings.h @@ -106,7 +106,7 @@ struct Settings u8 gpu_multisamples = 1; bool gpu_use_thread : 1 = true; bool gpu_use_software_renderer_for_readbacks : 1 = false; - bool gpu_threaded_presentation : 1 = true; + bool gpu_threaded_presentation : 1 = DEFAULT_THREADED_PRESENTATION; bool gpu_use_debug_device : 1 = false; bool gpu_disable_shader_cache : 1 = false; bool gpu_disable_dual_source_blend : 1 = false; @@ -508,9 +508,11 @@ struct Settings #ifndef __ANDROID__ static constexpr bool DEFAULT_SAVE_STATE_BACKUPS = true; static constexpr bool DEFAULT_FAST_BOOT_VALUE = false; + static constexpr bool DEFAULT_THREADED_PRESENTATION = false; #else static constexpr bool DEFAULT_SAVE_STATE_BACKUPS = false; static constexpr bool DEFAULT_FAST_BOOT_VALUE = true; + static constexpr bool DEFAULT_THREADED_PRESENTATION = true; #endif // PINE uses a concept of "slot" to be able to communicate with multiple