IncrementalPurgeGarbage

Incrementally purge garbage by deleting all unreferenced objects after routing Destroy.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h

Include

#include "UObject/UObjectGlobals.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/GarbageCollection.cpp

Syntax

void IncrementalPurgeGarbage
(
    bool bUseTimeLimit,
    double TimeLimit
)

Remarks

Incrementally purge garbage by deleting all unreferenced objects after routing Destroy.

Calling code needs to be EXTREMELY careful when and how to call this function as RF_Unreachable cannot change on any objects unless any pending purge has completed!

Parameters

Parameter

Description

bUseTimeLimit

whether the time limit parameter should be used

TimeLimit

soft time limit for this function call