Engine → ECS
archetype.h
One component set and the chunks holding its entities. Read-only outside the world; pointers to archetypes stay valid for the world's lifetime (the world's list is append-only).
Structs
Classes
| File |
Description |
archetype |
One component set and the chunks holding its entities. Read-only outside the world; pointers to archetypes stay valid for the world's lifetime (the world's list is append-only). |
Forward Declarations
chunk
chunk_pool
chunk_view
component_registry
class component_registry;
query
system_context
world
Constants
| Name |
Type |
Value |
Description |
CHUNK_ALIGNMENT |
inline constexpr u32 |
64 |
Alignment of every chunk block. |
CHUNK_SIZE |
inline constexpr u32 |
16 * 1024 |
Bytes of one chunk block. |
COLUMN_ALIGNMENT |
inline constexpr u32 |
16 |
Minimum alignment of a column start inside a chunk (SIMD-friendly loads). |
SMALL_CAPACITY_WARNING |
inline constexpr u32 |
8 |
Fewest rows per chunk before compute() logs a warning about a wasteful archetype. |