r.Android.DisableVulkanSupport
r.Android.DisableVulkanSupport
#Overview
name: r.Android.DisableVulkanSupport
The value of this variable can be defined or overridden in .ini config files. 18
.ini config files referencing this setting variable.
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Disable support for vulkan API. (Android Only)\n 0 = vulkan API will be used (providing device and project supports it) [default]\n 1 = vulkan will be disabled, opengl fall back will be used.
It is referenced in 2
C++ source files.
#Summary
#Setting Variables
#References In INI files
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:801, section: [Android DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:873, section: [Android_Emulator DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:911, section: [Android_Vulkan_SM5 DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:956, section: [Android_Adreno6xx_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:966, section: [Android_Adreno7xx_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:979, section: [Android_Xclipse_5xx_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:989, section: [Android_Xclipse_9xx_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:1001, section: [Android_Xclipse_xxx_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:1032, section: [Android_PowerVR_GM9xxx_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:1066, section: [Android_Mali_G72_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:1076, section: [Android_Mali_G76_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:1086, section: [Android_Mali_G77_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:1096, section: [Android_Mali_G78_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:1106, section: [Android_Mali_G710_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:1116, section: [Android_Mali_G7xx_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:1126, section: [Android_Unknown_Vulkan DeviceProfile]
<Workspace>/Engine/Config/BaseDeviceProfiles.ini:1149, section: [Oculus_Quest DeviceProfile]
<Workspace>/Projects/Lyra/Config/DefaultDeviceProfiles.ini:569, section: [Android_Epic DeviceProfile]
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/Core/Private/HAL/ConsoleManager.cpp:4143
Scope: file
Source code excerpt:
static TAutoConsoleVariable<int32> CVarDisableVulkanSupport(
TEXT("r.Android.DisableVulkanSupport"),
0,
TEXT("Disable support for vulkan API. (Android Only)\n"
" 0 = vulkan API will be used (providing device and project supports it) [default]\n"
" 1 = vulkan will be disabled, opengl fall back will be used."),
ECVF_ReadOnly);
#Loc: <Workspace>/Engine/Source/Runtime/Core/Private/Android/AndroidPlatformMisc.cpp:2386
Scope (from outer to inner):
file
function bool FAndroidMisc::ShouldUseVulkan
Source code excerpt:
CachedShouldUseVulkan = 0;
static const auto CVarDisableVulkan = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.Android.DisableVulkanSupport"));
const bool bVulkanAvailable = IsVulkanAvailable();
const bool bVulkanDisabledCVar = CVarDisableVulkan->GetValueOnAnyThread() == 1;
if (bVulkanAvailable && !bVulkanDisabledCVar)