Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FGPUDefragAllocator
Description
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.
| Name | Benchmark |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h |
| Include Path | #include "GPUDefragAllocator.h" |
| Source | /Engine/Source/Runtime/RHI/Private/GPUDefragAllocator.cpp |
void Benchmark
(
int32 MinChunkSize,
int32 MaxChunkSize,
float FreeRatio,
float LockRatio,
bool bFullDefrag,
bool bSaveImages,
const TCHAR * Filename
)
Parameters
| Name | Remarks |
|---|---|
| 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 |