summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorzackhow <zackhow@gmail.com>2019-01-25 17:32:54 -0500
committerzackhow <zackhow@gmail.com>2019-01-25 19:22:07 -0500
commit8a1eb34c38f38f2df71f128d92dfe7c9408e0022 (patch)
tree203586c57aa01e46e4a329589e5a4cd95a085669 /Source/Core
parentb14e540671a37c69b392085f3bc458bc5ea6154f (diff)
Android: Default backendMultithreading to false on android
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Config/GraphicsSettings.cpp7
-rw-r--r--Source/Core/VideoCommon/VideoConfig.cpp5
2 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/Core/Config/GraphicsSettings.cpp b/Source/Core/Core/Config/GraphicsSettings.cpp
index 61904b8a70..a59b646618 100644
--- a/Source/Core/Core/Config/GraphicsSettings.cpp
+++ b/Source/Core/Core/Config/GraphicsSettings.cpp
@@ -71,8 +71,15 @@ const ConfigInfo<bool> GFX_BORDERLESS_FULLSCREEN{{System::GFX, "Settings", "Bord
false};
const ConfigInfo<bool> GFX_ENABLE_VALIDATION_LAYER{
{System::GFX, "Settings", "EnableValidationLayer"}, false};
+
+#if defined(ANDROID)
+const ConfigInfo<bool> GFX_BACKEND_MULTITHREADING{
+ {System::GFX, "Settings", "BackendMultithreading"}, false};
+#else
const ConfigInfo<bool> GFX_BACKEND_MULTITHREADING{
{System::GFX, "Settings", "BackendMultithreading"}, true};
+#endif
+
const ConfigInfo<int> GFX_COMMAND_BUFFER_EXECUTE_INTERVAL{
{System::GFX, "Settings", "CommandBufferExecuteInterval"}, 100};
const ConfigInfo<bool> GFX_SHADER_CACHE{{System::GFX, "Settings", "ShaderCache"}, true};
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp
index cc14b191fd..8e794c193a 100644
--- a/Source/Core/VideoCommon/VideoConfig.cpp
+++ b/Source/Core/VideoCommon/VideoConfig.cpp
@@ -41,7 +41,12 @@ VideoConfig::VideoConfig()
backend_info.bSupportsBPTCTextures = false;
bEnableValidationLayer = false;
+
+#if defined(ANDROID)
+ bBackendMultithreading = false;
+#else
bBackendMultithreading = true;
+#endif
}
void VideoConfig::Refresh()