OsAllocationGranularity

Some platforms have advantages if memory is allocated in chunks larger than PageSize (e.g. VirtualAlloc() seems to have 64KB granularity as of now).

Windows
MacOS
Linux

Syntax

SIZE_T OsAllocationGranularity

Remarks

Some platforms have advantages if memory is allocated in chunks larger than PageSize (e.g. VirtualAlloc() seems to have 64KB granularity as of now). This value is the minimum allocation size that the system will use behind the scenes.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss