PreallocatedBufferCount

PreallocatedBufferCount

#Overview

name: PreallocatedBufferCount

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/BaseEngine.ini:3468, section: [OodleDataCompressionFormat]

#References in C++ code

#Callsites

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

#Loc: <Workspace>/Engine/Source/Runtime/Core/Private/Compression/OodleDataCompression.cpp:268

Scope (from outer to inner):

file
namespace    FOodleDataCompression
function     OodleScratchBuffers

Source code excerpt:

			BufferCount = 2;

			// "PreallocatedBufferCount" is not a great name
			//	it's actually the max number of static buffers
			//	 they will only be allocated as needed

			// be wary of possible init order problem
			//  if we init Oodle before config might not exist yet?
			//  can we just check GConfig vs nullptr ?

#Loc: <Workspace>/Engine/Source/Runtime/Core/Private/Compression/OodleDataCompression.cpp:278

Scope (from outer to inner):

file
namespace    FOodleDataCompression
function     OodleScratchBuffers

Source code excerpt:

			if ( GConfig )
			{
				GConfig->GetInt(TEXT("OodleDataCompressionFormat"), TEXT("PreallocatedBufferCount"), BufferCount, GEngineIni);
				if (BufferCount < 0)
				{
					// negative means one per logical core
					BufferCount = FPlatformMisc::NumberOfCoresIncludingHyperthreads();
				}
			}