net.QuantizeActorLocationOnSpawn
net.QuantizeActorLocationOnSpawn
#Overview
name: net.QuantizeActorLocationOnSpawn
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
When enabled, we will quantize Location for newly spawned actors to a single decimal of precision.
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/PackageMapClient.cpp:201
Scope: file
Source code excerpt:
static bool GbQuantizeActorLocationOnSpawn = true;
static FAutoConsoleVariableRef CVarQuantizeActorLocationOnSpawn(
TEXT("net.QuantizeActorLocationOnSpawn"),
GbQuantizeActorLocationOnSpawn,
TEXT("When enabled, we will quantize Location for newly spawned actors to a single decimal of precision.")
);
static bool GbQuantizeActorVelocityOnSpawn = true;
static FAutoConsoleVariableRef CVarQuantizeActorVelocityOnSpawn(
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/Net/Iris/ReplicationSystem/ActorReplicationBridgeInternal.cpp:267
Scope (from outer to inner):
file
namespace UE::Net::Private
function uint32 GetActorReplicationBridgeSpawnInfoFlags
Source code excerpt:
{
bool bQuantizeActorLocationOnSpawn = true;
IConsoleVariable* CVar = IConsoleManager::Get().FindConsoleVariable(TEXT("net.QuantizeActorLocationOnSpawn"));
if (ensure(CVar))
{
bQuantizeActorLocationOnSpawn = CVar->GetBool();
}
Flags |= bQuantizeActorLocationOnSpawn ? EActorReplicationBridgeSpawnInfoFlags_QuantizeLocation : 0U;
}