GetAverageRequiredTexturePoolSize

Returns the average value of the required texture pool "r.streaming.PoolSize" since engine start or since the last [ResetAverageRequiredTexturePoolSize()](API\Runtime\Engine\Engine\ResetAverageRequiredTexturePoolS-).

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/TextureStreamingTypes.h

Include

#include "Engine/TextureStreamingTypes.h"

Source

/Engine/Source/Runtime/Engine/Private/Streaming/TextureStreamingHelpers.cpp

Syntax

int64 GetAverageRequiredTexturePoolSize()

Remarks

Returns the average value of the required texture pool "r.streaming.PoolSize" since engine start or since the last ResetAverageRequiredTexturePoolSize(). This value gives the perfect value for "r.streaming.PoolSize" so that the streamer would always have enough memory to stream in everything. The requirements are different depending on whether GPoolSizeVRAMPercentage > 0 or not. When GPoolSizeVRAMPercentage > 0, the non streaming mips are not accounted in the required pool size since StreamingPool = Min(TexturePool, GPoolSizeVRAMPercentage * VRAM - RenderTargets - NonStreamingTexture) This means that the StreamingPool = TexturePool, unless there is not enough VRAM Otherwise, when GPoolSizeVRAMPercentage == 0, StreamingPool = TexturePool - NonStreamingTexture. In which case "r.streaming.PoolSize" must account for the size of NonStreamingTexture

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss