net.Iris.UsePrevReceivedStateForOnReps
net.Iris.UsePrevReceivedStateForOnReps
#Overview
name: net.Iris.UsePrevReceivedStateForOnReps
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
If true OnReps will use the previous received state when doing onreps and not do any compares, if set to false we will copy the local state and do a compare before issuing onreps
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/Experimental/Iris/Core/Private/Iris/ReplicationSystem/PropertyReplicationFragment.cpp:13
Scope (from outer to inner):
file
namespace UE::Net
Source code excerpt:
static bool bUsePrevReceivedStateForOnReps = false;
static FAutoConsoleVariableRef CVarUsePrevReceivedStateForOnReps(
TEXT("net.Iris.UsePrevReceivedStateForOnReps"),
bUsePrevReceivedStateForOnReps,
TEXT("If true OnReps will use the previous received state when doing onreps and not do any compares, if set to false we will copy the local state and do a compare before issuing onreps"
));
FPropertyReplicationFragment::FPropertyReplicationFragment(EReplicationFragmentTraits InTraits, UObject* InOwner, const FReplicationStateDescriptor* InDescriptor)
: FReplicationFragment(InTraits)
#Loc: <Workspace>/Engine/Plugins/Runtime/ReplicationSystemTestPlugin/Source/Private/Tests/ReplicationSystem/TestReplicationSystem.cpp:1801
Scope (from outer to inner):
file
namespace UE::Net::Private
function UE_NET_TEST_FIXTURE
Source code excerpt:
{
// Enable cvars to exercise path that store previous state for OnReps to make sure we exercise path that accumulate dirty changes so that we have a complete state.
IConsoleVariable* CVarUsePrevReceivedStateForOnReps = IConsoleManager::Get().FindConsoleVariable(TEXT("net.Iris.UsePrevReceivedStateForOnReps"));
check(CVarUsePrevReceivedStateForOnReps != nullptr && CVarUsePrevReceivedStateForOnReps->IsVariableBool());
const bool bUsePrevReceivedStateForOnReps = CVarUsePrevReceivedStateForOnReps->GetBool();
CVarUsePrevReceivedStateForOnReps->Set(true, ECVF_SetByCode);
// Make sure we allow partial dequantize
IConsoleVariable* CVarForceFullDequantizeAndApply = IConsoleManager::Get().FindConsoleVariable(TEXT("net.iris.ForceFullDequantizeAndApply"));