Bevy is a free and open-source game engine written in Rust that builds every part of a game, from rendering to input and audio, on a data-driven entity component system (ECS). Among game engines it stands out for being code-first: developers describe their game in Rust source code rather than in a visual editor, and the engine schedules that code to run in parallel across processor cores.
The project was first released publicly in 2020 and is distributed under the permissive MIT and Apache 2.0 dual license. It is still pre-1.0 software, which means each release can change its programming interface, a fact that shapes how teams adopt it.
How the Bevy ECS organizes game logic
Bevy structures a game as entities, components, systems and resources. An entity is only an identifier, a component is a plain Rust struct attached to it, and a system is an ordinary Rust function that operates on all entities matching a query. Global data that belongs to no single entity, such as a score or a timer, is stored as a resource.
Because each system declares in its function signature which data it reads and writes, the scheduler can determine automatically which systems may run at the same time. Two systems that only read transforms can run in parallel, while a system that writes transforms must wait. This automatic parallelism is a central design goal and distinguishes Bevy from engines where gameplay scripts run on one main thread.
The following table summarizes the core ECS concepts as Bevy implements them.
| Concept | Rust representation | Role in the game |
|---|---|---|
| Entity | Lightweight ID value | Identifies one game object |
| Component | Struct deriving Component | Holds data such as health or position |
| System | Plain function with parameters | Runs logic over matching entities |
| Query | Query system parameter | Selects entities by component filters |
| Resource | Struct deriving Resource | Stores global, single-instance state |
| Commands | Deferred command buffer | Spawns and despawns entities safely |
Systems are grouped into schedules such as Startup, Update and FixedUpdate, which correspond to the stages of the game loop. Developers can order systems explicitly or group them into sets when one result must be ready before another system runs.
Plugins, rendering and engine modules
Everything in Bevy is assembled from plugins, including the engine’s own features. A minimal application creates an App, adds the DefaultPlugins group for windowing, rendering, input and assets, and then registers the game’s own systems. This modular architecture lets developers remove features they do not need or replace them with community crates.
Rendering is built on wgpu, a Rust graphics abstraction that targets Vulkan, Metal, DirectX 12, and WebGPU or WebGL2 in the browser. The renderer itself is implemented with ECS concepts, so custom render passes and materials use the same patterns as gameplay code. The table below lists the main built-in modules.
| Module | Purpose | Notes |
|---|---|---|
| bevy_ecs | Entity component system core | Usable as a standalone crate |
| bevy_render and bevy_pbr | 2D, 3D and physically based rendering | Built on wgpu backends |
| bevy_asset | Loading and hot reloading assets | Supports glTF scenes and images |
| bevy_ui | User interface layout | Flexbox and grid style layout |
| bevy_input | Keyboard, mouse, gamepad and touch | Exposed as resources and events |
| bevy_audio | Sound playback | Basic features, often extended by crates |
How Bevy compares with other game engines
Bevy differs from mainstream engines mainly in workflow and maturity. Unity and Unreal Engine are editor-centric and offer large asset stores and console export, while Godot combines a full editor with GDScript. Bevy has no stable official editor yet, so scenes are usually built in code or imported from tools such as Blender.
| Engine | Primary language | Workflow | Maturity |
|---|---|---|---|
| Bevy | Rust | Code-first with ECS | Pre-1.0, rapid changes |
| Godot | GDScript, C# | Editor with node tree | Stable releases |
| Unity | C# | Editor with GameObjects | Mature, commercial license |
| Unreal Engine | C++, Blueprints | Editor with actors | Mature, royalty model |
The Rust language brings memory safety without a garbage collector, which removes a class of crashes and avoids collection pauses. The trade-offs are longer compile times and a steeper learning curve, which Bevy partly mitigates with an optional dynamic linking feature for faster iteration during development.
Choosing Bevy for a project
Bevy fits teams that already know Rust or want fine control over engine code, and projects whose logic benefits from processing many similar entities efficiently, such as simulations, strategy games and particle-heavy prototypes. It is less suitable when a project needs a mature visual editor, a large asset marketplace or established console publishing support.
| Situation | Suitability | Reason |
|---|---|---|
| Rust-focused indie team | Strong fit | Native language and full source access |
| Large-scale simulation | Strong fit | Parallel ECS handles many entities |
| Artist-led team needing an editor | Weak fit | Code-first workflow dominates |
| Console release on a deadline | Weak fit | Limited official platform tooling |
| Learning engine architecture | Good fit | Readable, modular open-source code |
Limitations and common pitfalls
The most cited limitation is API churn between releases. Bevy publishes a new version roughly every three to four months together with a migration guide, and upgrades often require code changes. Third-party plugins may lag behind, so a project can be blocked on an ecosystem crate for weeks after an engine release.
- Unclear system ordering can cause one-frame delays when a system reads data before another writes it.
- Overly broad queries reduce parallelism because they lock more component types than needed.
- Treating entities like objects with deep inheritance ignores how ECS is meant to work.
- Pinning versions in
Cargo.tomlis essential to avoid accidental breaking upgrades.
In everyday language
Bevy is a free toolkit for making video games, and it is written in the programming language Rust. Instead of clicking objects together in a visual editor, developers write the game as code.
Its key idea is to keep data and behavior separate. Every character or object is just a label carrying pieces of data, like position or health, and small rules run over all objects with the right data. Because the engine knows which rules touch which data, it can run many rules at the same time on different processor cores, which helps games with thousands of moving parts stay fast.
Seen in the real world
A three-person independent studio builds a colony simulation game in which up to 20,000 settlers, animals and resources move across a map. The team already writes backend software in Rust, so it chooses Bevy and models settlers as entities with components for position, hunger, job and inventory.
Separate systems handle pathfinding, needs and work assignment, and the scheduler spreads them across eight CPU cores. Profiling shows the simulation step staying under 8 milliseconds per frame at full population. The team pins one engine version during production and upgrades only between milestones, using the migration guide. The outcome is a stable, performant simulation built without licensing fees, at the cost of creating its own level editing tools.