FMemory::Trim

Releases as much memory as possible. Must be called from the main thread.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/UnrealMemory.h

Include

#include "HAL/UnrealMemory.h"

Source

/Engine/Source/Runtime/Core/Private/HAL/UnrealMemory.cpp

Syntax

static void Trim
(
    bool bTrimThreadCaches
)

Remarks

Releases as much memory as possible. Must be called from the main thread.