Force garbage collection immediately

Is that corresponding with “GetWorld()->ForceGarbageCollection(true);” 100%?

Hi there!

Epic has a new preference:



/** Updates the timer between garbage collection such that at the next opportunity garbage collection will be run. */
    DEPRECATED(4.18, "Call GEngine->ForceGarbageCollection instead")
    void ForceGarbageCollection( bool bFullPurge = false );




GEngine->ForceGarbageCollection


:heart:

Rama

2 Likes

Just wanted to add a little bit here, i just noticed today they have actually added a client function in the player controller.

APlayerController::ClientForceGarbageCollection_Implementation()

So we can use that as well :slight_smile:

Wooo!