net.ReportSyncLoads

net.ReportSyncLoads

#Overview

name: net.ReportSyncLoads

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/PackageMapClient.cpp:229

Scope: file

Source code excerpt:

static bool bNetReportSyncLoads = false;
static FAutoConsoleVariableRef CVarNetReportSyncLoads(
	TEXT("net.ReportSyncLoads"),
	bNetReportSyncLoads,
	TEXT("If enabled, the engine will track objects loaded by the networking system and broadcast FNetDelegates::OnSyncLoadDetected to report them."
		"By default they are logged to the LogNetSyncLoads category.")
);

void BroadcastNetFailure(UNetDriver* Driver, ENetworkFailure::Type FailureType, const FString& ErrorStr)

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Classes/Engine/NetworkDelegates.h:294

Scope (from outer to inner):

file
class        class FNetDelegates

Source code excerpt:


	/**
	 * Delegate fired when net.ReportSyncLoads is enabled and the replication system has determined which property or object caused the load.
	 * This is likely reported after the load itself, since the load can occur while parsing export bunches, but we don't know what property
	 * or object refers to the loaded object until the property itself is read.
	 *
	 * @param SyncLoadReport struct containing information about a sync load that occurred.
	 */
	DECLARE_MULTICAST_DELEGATE_OneParam(FOnSyncLoadDetected, const FNetSyncLoadReport& /* SyncLoadReport */);
	static ENGINE_API FOnSyncLoadDetected OnSyncLoadDetected;
};