net.DormancyHysteresis

net.DormancyHysteresis

#Overview

name: net.DormancyHysteresis

This variable is created as a Console Variable (cvar).

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/DataChannel.cpp:105

Scope: file

Source code excerpt:

static float DormancyHysteresis = 0;
static FAutoConsoleVariableRef CVarDormancyHysteresis(
	TEXT("net.DormancyHysteresis"),
	DormancyHysteresis,
	TEXT("When > 0, represents the time we'll wait before letting a channel become fully dormant (in seconds). This can prevent churn when objects are going in and out of dormant more frequently than normal.")
);

namespace UE::Net
{

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/NetDriver.cpp:3651

Scope (from outer to inner):

file
function     void HandleNetFlushAllDormancy

Source code excerpt:


		float CurrentDormancyHysteresis = -1.f;
		if (IConsoleVariable* CurrentDormancyHysteresisCVar = IConsoleManager::Get().FindConsoleVariable(TEXT("net.DormancyHysteresis")))
		{
			CurrentDormancyHysteresis = CurrentDormancyHysteresisCVar->GetFloat();
		}

		UE_LOG(LogNet, Warning, TEXT("HandleNetFlushAllDormancy: NumberOfActors: %d, NumberOfActorsDormantOnAllConnections: %d, TimeForFlush: %lf, DormancyHysteresis: %f"),
			ActorsToReset.Num(), NumberOfActorsDormantOnAllConnections, TotalTime, CurrentDormancyHysteresis);