Home › Per Gregory + Acton, a POOL ALLOCATOR is typical…
Per Gregory + Acton, a POOL ALLOCATOR is typically used for objects that share which property?
AAllocations larger than 1 MB only
BAllocations that never get freed at all
CStrictly distinct sizes and lifetimes
DSame fixed size and similar lifetime
Answer & Solution
Correct answer: D. Same fixed size and similar lifetime
Gregory Ch. 6: pool keeps a free-list of fixed-size slots; alloc/free are O(1) and avoid fragmentation. Perfect for bullets, particles, network packets.
Related questions
Per Gregory Ch. 11 + Brendan Iribe Oculus talks, latency-sensitive systems often use a TRIPer 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 usPer Gregory Ch. 8 (Render Engine), the modern frame submission model uses DOUBLE / TRIPLE