Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FGPUDefragAllocator
Description
Partially defragments the memory and tries to process all async reallocation requests at the same time. Call this once per frame.
Partially defragments the memory and tries to process all async reallocation requests at the same time. Call this once per frame.
| Name | Tick |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/GPUDefragAllocator.h |
| Include Path | #include "GPUDefragAllocator.h" |
| Source | /Engine/Source/Runtime/RHI/Private/GPUDefragAllocator.cpp |
virtual int32 Tick
(
FRelocationStats & Stats,
bool bPanicDefrag
)
Num bytes relocated.
Parameters
| Name | Remarks |
|---|---|
| Stats | [out] Stats |
| bPanicDefrag | If true, performs a full defrag and ignores all reallocation requests |
| Stats | [out] Stats |
| bPanicDefrag | If true, performs a full defrag and ignores all reallocation requests |