FGPUDefragAllocator::Benchmark

Performs a benchmark of the allocator and outputs the result to the log.

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h

Include

#include "GPUDefragAllocator.h"

Source

/Engine/Source/Runtime/RHI/Private/GPUDefragAllocator.cpp

Syntax

void Benchmark
(
    int32 MinChunkSize,
    int32 MaxChunkSize,
    float FreeRatio,
    float LockRatio,
    bool bFullDefrag,
    bool bSaveImages,
    const TCHAR * Filename
)

Remarks

Performs a benchmark of the allocator and outputs the result to the log.

Performs a benchmark of the allocator and outputs the result to the log.

Parameters

Parameter

Description

MinChunkSize

Minimum number of uint8s per random chunk

MaxChunkSize

Maximum number of uint8s per random chunk

FreeRatio

Free 0.0-1.0 of the memory before benchmarking

LockRatio

Lock 0.0-1.0 % of the memory before benchmarking

bFullDefrag

Whether to test full defrag (true) or continuous defrag (false)

bSaveImages

Whether to save before/after images to hard disk (TexturePoolBenchmark-*.bmp)

Filename

[opt] Filename to a previously saved memory layout to use for benchmarking, or nullptr

MinChunkSize

Minimum number of bytes per random chunk

MaxChunkSize

Maximum number of bytes per random chunk

FreeRatio

Free 0.0-1.0 % of the memory before benchmarking

LockRatio

Lock 0.0-1.0 % of the memory before benchmarking

bFullDefrag

Whether to test full defrag (true) or continuous defrag (false)

bSaveImages

Whether to save before/after images to hard disk (TexturePoolBenchmark-*.bmp)

Filename

[opt] Filename to a previously saved memory layout to use for benchmarking, or nullptr

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