EnTT is a compact C++ library centered on a fast entity-component system, plus reflection, scheduling, and resource helpers for game code.
Overview
EnTT implements the entity-component-system pattern used in game and simulation code, letting you attach flexible component types to entities and process them in systems. Storage supports optional pointer stability and customization hooks while aiming for low overhead in typical game loops.
Beyond the core registry, the library bundles an execution graph builder for scheduling work, a macro-free runtime reflection layer, delegates and signals, sparse-set-based containers, resource loaders and handles, and utilities for DLL-friendly use across modules.
It is header-only: including entt.hpp pulls in the full library, or you can include narrower headers such as entity/registry.hpp for ECS-only use. Integrators link via CMake as EnTT::EnTT, or use packaging paths such as vcpkg, Homebrew, build2, Bazel, and pkg-config.
The project is used in commercial games including Minecraft, according to the authors, and is positioned as a general C++ toolkit rather than ECS alone. Optional benchmarks and community extensions address networking, prefabs, and observers.
Key features
- Header-only C++20 ECS core
- Runtime reflection without macros
- Execution graph task scheduling
- Signals, delegates, and events
- Resource loaders and handles
- Sparse set containers
- CMake and pkg-config integration
- Optional ECS-only header include
Use cases
- Game entity and component modeling
- Simulation architectures in C++
- Custom engines needing ECS storage
- Runtime type inspection in games
- Scheduled system graphs in engines