Skip to main content

Module alloc

Module alloc 

Source
Expand description

Frame-scoped bump allocation.

A FrameArena is a fixed block of bytes with a bump pointer. Per-frame transient data โ€” visible-instance lists, draw arguments, scratch index buffers โ€” is carved out of it and thrown away wholesale by FrameArena::reset at the frame boundary. No per-allocation bookkeeping, no free, no fragmentation.

Structsยง

ArenaStats
Frame budget observability โ€” see FrameArena::stats.
FrameArena
A fixed-capacity bump allocator for per-frame data.