Watch this video presented by Enduring Games and find out how to manage memory in Unreal Engine.
Garbage collection is a form of memory management that automatically scans and reclaims unreferenced memory.
Unlike using C# in Unity, C++ in Unreal Engine does not natively support automatic garbage collection. This means programmers need to manually manage the lifetime of heap allocated memory. But Unreal Engine adds support for garbage collection when dealing with CPU-side gameplay objects that are derived from the UObject class.
In this tutorial, Enduring Games explores the tools at your disposal for performing garbage collection in Unreal Engine and takes a look at ways you can optimize this workflow.
Find out more about programming Unreal Engine’s improved garbage collection system for UObjects here: dev.epicgames.com/documentation/unreal-engine/incremental-garbage-collection-in-unreal-engine
Learn more about switching to Unreal Engine here:
https://www.unrealengine.com/en-US/uses/switching-to-unreal-engine
#C++, #C#, #GarbageCollection, #MemoryManagement, #UObjects, #ReachabilityAnalysis
#UnrealEngine, #Unity, #EnduringGames
source