Home › Per Gregory + Bevy book, an ECS often pairs ENTI…
Per Gregory + Bevy book, an ECS often pairs ENTITY ids with COMPONENT storage. Iterating a system over a query usually visits which?
ARandom scattered structures across the heap
BLinked lists threaded through entity pointers
CContiguous component arrays for cache locality
DDatabase rows fetched from disk each query
Answer & Solution
Correct answer: C. Contiguous component arrays for cache locality
Bevy ECS docs + Unity DOTS: archetypes group entities with identical component sets; component arrays are contiguous. Iteration is cache-friendly.
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