a.Streaming.SpoofFailedChunkLoad

a.Streaming.SpoofFailedChunkLoad

#Overview

name: a.Streaming.SpoofFailedChunkLoad

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

It is referenced in 3 C++ source files.

#Summary

#Usage in the C++ source code

The purpose of a.Streaming.SpoofFailedChunkLoad is to simulate failed loading of streamed animation chunks in Unreal Engine 5. This setting variable is primarily used for testing and debugging purposes within the animation streaming system.

Regarding the associated variable SpoofFailedAnimationChunkLoad:

The purpose of SpoofFailedAnimationChunkLoad is to serve as the actual storage for the a.Streaming.SpoofFailedChunkLoad console variable. It’s an integer variable that directly controls the behavior of the animation streaming system.

#References in C++ code

#Callsites

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

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/Animation/AnimationStreaming.cpp:12

Scope: file

Source code excerpt:

static int32 SpoofFailedAnimationChunkLoad = 0;
FAutoConsoleVariableRef CVarSpoofFailedAnimationChunkLoad(
	TEXT("a.Streaming.SpoofFailedChunkLoad"),
	SpoofFailedAnimationChunkLoad,
	TEXT("Forces failing to load streamed animation chunks.\n")
	TEXT("0: Not Enabled, 1: Enabled"),
	ECVF_Default);

#Associated Variable and Callsites

This variable is associated with another variable named SpoofFailedAnimationChunkLoad. They share the same value. See the following C++ source code.

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/Animation/AnimationStreaming.cpp:10

Scope: file

Source code excerpt:

#include "HAL/PlatformFile.h"

static int32 SpoofFailedAnimationChunkLoad = 0;
FAutoConsoleVariableRef CVarSpoofFailedAnimationChunkLoad(
	TEXT("a.Streaming.SpoofFailedChunkLoad"),
	SpoofFailedAnimationChunkLoad,
	TEXT("Forces failing to load streamed animation chunks.\n")
	TEXT("0: Not Enabled, 1: Enabled"),
	ECVF_Default);

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/Animation/AnimationStreaming.cpp:498

Scope (from outer to inner):

file
function     const FCompressedAnimSequence* FAnimationStreamingManager::GetLoadedChunk

Source code excerpt:

{
	// Check for the spoof of failing to load a stream chunk
	if (SpoofFailedAnimationChunkLoad > 0)
	{
		return nullptr;
	}

	// If we fail at getting the critical section here, early out.
	FScopeLock MapLock(&CriticalSection);