Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11095 from K0bin/misc-vulkan
Remove special treatment for Android in video settings
  • Loading branch information
AdmiralCurtiss committed Oct 8, 2022
2 parents 1dd30b5 + 4e204a9 commit da27a3e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
Expand Up @@ -197,7 +197,7 @@ public enum BooleanSetting implements AbstractBooleanSetting
GFX_ENABLE_VALIDATION_LAYER(Settings.FILE_GFX, Settings.SECTION_GFX_SETTINGS,
"EnableValidationLayer", false),
GFX_BACKEND_MULTITHREADING(Settings.FILE_GFX, Settings.SECTION_GFX_SETTINGS,
"BackendMultithreading", false),
"BackendMultithreading", true),
GFX_WAIT_FOR_SHADERS_BEFORE_STARTING(Settings.FILE_GFX, Settings.SECTION_GFX_SETTINGS,
"WaitForShadersBeforeStarting", false),
GFX_SAVE_TEXTURE_CACHE_TO_STATE(Settings.FILE_GFX, Settings.SECTION_GFX_SETTINGS,
Expand Down
4 changes: 2 additions & 2 deletions Source/Android/app/src/main/res/values/strings.xml
Expand Up @@ -339,8 +339,8 @@
<string name="crop">Crop</string>
<string name="crop_description">Crops the picture from its native aspect ratio to 4:3 or 16:9. If unsure, leave this unchecked.</string>
<string name="progressive_scan">Enable Progressive Scan</string>
<string name="backend_multithreading">Backend Multithreading</string> <!--Backend Multithreading is only disabled by default on Android -->
<string name="backend_multithreading_description">Enables graphics backend multithreading (Vulkan only). May affect performance. If unsure, leave this unchecked.</string>
<string name="backend_multithreading">Backend Multithreading</string>
<string name="backend_multithreading_description">Enables graphics backend multithreading (Vulkan only). May affect performance. If unsure, leave this checked.</string>
<string name="defer_efb_invalidation">Defer EFB Cache Invalidation</string>
<string name="defer_efb_invalidation_description">Defers invalidation of the EFB access cache until a GPU synchronization command is executed. May improve performance in some games at the cost of stability. If unsure, leave this unchecked.</string>
<string name="manual_texture_sampling">Manual Texture Sampling</string>
Expand Down
7 changes: 0 additions & 7 deletions Source/Core/Core/Config/GraphicsSettings.cpp
Expand Up @@ -69,17 +69,10 @@ const Info<bool> GFX_BORDERLESS_FULLSCREEN{{System::GFX, "Settings", "Borderless
const Info<bool> GFX_ENABLE_VALIDATION_LAYER{{System::GFX, "Settings", "EnableValidationLayer"},
false};

#if defined(ANDROID)
const Info<bool> GFX_BACKEND_MULTITHREADING{{System::GFX, "Settings", "BackendMultithreading"},
false};
const Info<int> GFX_COMMAND_BUFFER_EXECUTE_INTERVAL{
{System::GFX, "Settings", "CommandBufferExecuteInterval"}, 0};
#else
const Info<bool> GFX_BACKEND_MULTITHREADING{{System::GFX, "Settings", "BackendMultithreading"},
true};
const Info<int> GFX_COMMAND_BUFFER_EXECUTE_INTERVAL{
{System::GFX, "Settings", "CommandBufferExecuteInterval"}, 100};
#endif

const Info<bool> GFX_SHADER_CACHE{{System::GFX, "Settings", "ShaderCache"}, true};
const Info<bool> GFX_WAIT_FOR_SHADERS_BEFORE_STARTING{
Expand Down
4 changes: 0 additions & 4 deletions Source/Core/VideoCommon/VideoConfig.h
Expand Up @@ -152,11 +152,7 @@ struct VideoConfig final
bool bEnableValidationLayer = false;

// Multithreaded submission, currently only supported with Vulkan.
#if defined(ANDROID)
bool bBackendMultithreading = false;
#else
bool bBackendMultithreading = true;
#endif

// Early command buffer execution interval in number of draws.
// Currently only supported with Vulkan.
Expand Down

0 comments on commit da27a3e

Please sign in to comment.