r.Vulkan.UseChunkedPSOCache

r.Vulkan.UseChunkedPSOCache

#Overview

name: r.Vulkan.UseChunkedPSOCache

This variable is created as a Console Variable (cvar).

It is referenced in 2 C++ source files.

#Summary

#References in C++ code

#Callsites

This variable is referenced in the following C++ source code:

#Loc: <Workspace>/Engine/Source/Runtime/VulkanRHI/Private/VulkanChunkedPipelineCache.cpp:66

Scope (from outer to inner):

file
namespace    UE
namespace    Vulkan

Source code excerpt:

		static int32 GUseChunkedPSOCache = 0;
		static FAutoConsoleVariableRef GVulkanGUseNewCacheCodeCVar(
			TEXT("r.Vulkan.UseChunkedPSOCache"),
			GUseChunkedPSOCache,
			TEXT("\n")
			TEXT("")
			, ECVF_RenderThreadSafe | ECVF_ReadOnly
		);

#Loc: <Workspace>/Engine/Source/Runtime/VulkanRHI/Private/Android/VulkanAndroidPlatform.cpp:1636

Scope (from outer to inner):

file
function     void FVulkanAndroidPlatform::PostInitGPU

Source code excerpt:


	// start external compilers if precaching is specified.	
	static const auto CVarChunkedPSOCache = IConsoleManager::Get().FindConsoleVariable(TEXT("r.Vulkan.UseChunkedPSOCache"));
	static const auto CVarNumRemoteProgramCompileServices = IConsoleManager::Get().FindConsoleVariable(TEXT("Android.Vulkan.NumRemoteProgramCompileServices"));
	static const auto CVarPSOPrecaching = IConsoleManager::Get().FindConsoleVariable(TEXT("r.PSOPrecaching"));
	static const auto CVarVulkanPSOPrecaching = IConsoleManager::Get().FindConsoleVariable(TEXT("r.Vulkan.AllowPSOPrecaching"));	
	if (CVarNumRemoteProgramCompileServices->GetInt() && CVarChunkedPSOCache->GetInt() && CVarPSOPrecaching->GetInt() && CVarVulkanPSOPrecaching->GetInt())
	{
		FVulkanAndroidPlatform::StartAndWaitForRemoteCompileServices(CVarNumRemoteProgramCompileServices->GetInt());