s.StreamableDelegateDelayFrames
s.StreamableDelegateDelayFrames
#Overview
name: s.StreamableDelegateDelayFrames
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Number of frames to delay StreamableManager delegates
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/Engine/Private/StreamableManager.cpp:20
Scope: file
Source code excerpt:
static int32 GStreamableDelegateDelayFrames = 1;
static FAutoConsoleVariableRef CVarStreamableDelegateDelayFrames(
TEXT("s.StreamableDelegateDelayFrames"),
GStreamableDelegateDelayFrames,
TEXT("Number of frames to delay StreamableManager delegates "),
ECVF_Default
);
// CVar to switch back to legacy behavior of non-specifically flushing async loading when waiting on a request handle
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Classes/Engine/StreamableManager.h:238
Scope: file
Source code excerpt:
/**
* Calls a StreamableDelegate, this will add to the delayed callback queue depending on s.StreamableDelegateDelayFrames
*
* @param Delegate Primary delegate to execute
* @param AssociatedHandle Streamable handle associated with this delegate, may be null
* @param CancelDelegate If handle gets cancelled before primary delegate executes, this delegate will be called instead
*/
static ENGINE_API void ExecuteDelegate(const FStreamableDelegate& Delegate, TSharedPtr<FStreamableHandle> AssociatedHandle = nullptr, const FStreamableDelegate& CancelDelegate = FStreamableDelegate());
/** Overload taking the Delegate by rvalue. Using this will prevent any copies of FStreamableDelegate from being made if the callback is deferred. */
static ENGINE_API void ExecuteDelegate(FStreamableDelegate&& Delegate, TSharedPtr<FStreamableHandle> AssociatedHandle = nullptr, FStreamableDelegate&& CancelDelegate = FStreamableDelegate());
/**
* Return a TSharedPtr of the first handle among this and descendants which satisfies the predicate.
*