Module allocators

Source
Expand description

Low-level memory allocators used for all dynamic allocation in the engine.

The idea is to use any system allocators a few times at startup to create these allocators, and then suballocate from that. This should keep performance characteristics more predictable between different platforms.

Macros§

static_allocator
Creates a static LinearAllocator with the given amount of bytes of backing memory.

Structs§

LinearAllocator
A linear allocator with a constant capacity. Can allocate memory regions with any size or alignment (within the capacity) very fast, but individual allocations can’t be freed to make more space while there’s still other allocations in use.