MaxUsedMemory

MaxUsedMemory

#Overview

name: MaxUsedMemory

The value of this variable can be defined or overridden in .ini config files. 1 .ini config file referencing this setting variable.

It is referenced in 2 C++ source files.

#Summary

#Setting Variables

#References In INI files

Location: <Workspace>/Engine/Config/BaseEditor.ini:327, section: [GatherTextFromAssets]

#References in C++ code

#Callsites

This variable is referenced in the following C++ source code:

#Loc: <Workspace>/Engine/Plugins/Enterprise/DatasmithCADImporter/Source/CADInterfaces/Private/CADFileData.cpp:51

Scope (from outer to inner):

file
namespace    CADLibrary
function     void FCADFileData::ExportValidationData

Source code excerpt:

	//MemoryUsage
	constexpr float OneMegaBit = 1024.f * 1024.f;
	uint64 MaxUsedMemory = Record.MaxMemoryUsed - Record.StartMemoryUsed;
	float MaxUsedMemoryF = static_cast<float>(MaxUsedMemory) / OneMegaBit;
	CsvData += FString::Printf(TEXT("%f,"), MaxUsedMemoryF);

	//SceneGrapheData.InstanceNum
	CsvData.AppendInt(SceneGraphArchive.Instances.Num());
	CsvData += TEXT(",");
	//SceneGrapheData.Bodies

#Loc: <Workspace>/Engine/Source/Editor/UnrealEd/Private/Commandlets/GatherTextFromAssetsCommandlet.cpp:1582

Scope (from outer to inner):

file
function     bool UGatherTextFromAssetsCommandlet::ConfigureFromScript

Source code excerpt:

		else
		{
			GConfig->GetInt(TEXT("GatherTextFromAssets"), TEXT("MaxUsedMemory"), MaxUsedMemoryMB, GEditorIni);
		}
		MaxUsedMemoryMB = FMath::Max(MaxUsedMemoryMB, 0);
		MaxUsedMemoryBytes = MaxUsedMemoryMB * 1024LL * 1024LL;
	}

	return !bHasFatalError;