net.DormancyValidate
net.DormancyValidate
#Overview
name: net.DormancyValidate
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Validates that dormant actors do not change state while in a dormant state (on server only)0: Dont validate. 1: Validate on wake up. 2: Validate on each net update
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/NetDriver.cpp:362
Scope: file
Source code excerpt:
int32 GNetDormancyValidate = 0;
static FAutoConsoleVariableRef CVarNetDormancyValidate(
TEXT("net.DormancyValidate"),
GNetDormancyValidate,
TEXT("Validates that dormant actors do not change state while in a dormant state (on server only)")
TEXT("0: Dont validate. 1: Validate on wake up. 2: Validate on each net update"),
ECVF_Default);
bool GbNetReuseReplicatorsForDormantObjects = false;
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/NetDriver.cpp:5826
Scope (from outer to inner):
file
function int32 UNetDriver::ServerReplicateActors
Source code excerpt:
check(Connection);
// net.DormancyValidate can be set to 2 to validate all dormant actors against last known state before going dormant
if ( GNetDormancyValidate == 2 )
{
auto ValidateFunction = [](FObjectKey OwnerActorKey, FObjectKey ObjectKey, const TSharedRef<FObjectReplicator>& ReplicatorRef)
{
FObjectReplicator& Replicator = ReplicatorRef.Get();