Practice free →
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.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions