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