Home › Per Gregory + Acton, a STACK / LINEAR allocator …
Per Gregory + Acton, a STACK / LINEAR allocator for frame data clears memory by which mechanism?
AResetting the bump pointer (no per-object free)
BCalling delete on every object individually
CTagging every allocation and freeing by tag
DCompacting the heap via GC pass on a stop
Answer & Solution
Correct answer: A. Resetting the bump pointer (no per-object free)
Gregory Ch. 6 Memory + Acton DOD: bump-allocator returns ptr += size; reset moves ptr back to base each frame. ~1-cycle alloc, zero free cost.
Related questions
Per Gregory Ch. 11 + Brendan Iribe Oculus talks, latency-sensitive systems often use a TRIPer Gregory + Acton, a POOL ALLOCATOR is typically used for objects that share which propePer Gregory Ch. 8 (Rendering), a Z-PRE-PASS renders depth-only first to do which?Per Gregory Ch. 15 (Cinematics), the SCENE GRAPH is most commonly traversed in which orderPer Gregory Ch. 13 (Networking), DETERMINISTIC simulation lets a multiplayer game replay oPer Gregory Ch. 8, HOT RELOAD of shaders / scripts in an engine works by which mechanism?Per Mike Acton + Gregory, DATA-DRIVEN design means game tunables live in which kind of filPer Gregory Ch. 7 (Game Loop), the JOB SYSTEM (e.g. Unity Burst, Naughty Dog fibers) is us