garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

.. /docs/adr/001-bevy-game-engine.md

raw

ADR-001: Bevy as Game Engine


Metadata:


Context

Problem: Need a 3D game engine for building a virtual world/metaverse-style application with regions, prims, and avatar movement.

Requirements:

Decision

Use Bevy as the game engine for cartopolis.

Approach: Bevy 0.19 with a slimmed, explicit feature set (default-features = false, see crates/cartopolis/Cargo.toml) — only the plugins used: bevy_pbr, bevy_render, bevy_core_pipeline, bevy_post_process (bloom), bevy_gltf, bevy_animation, bevy_scene, bevy_winit, reflect_auto_register, etc.

Rationale

Primary Reasoning:

  1. Rust-native: no FFI overhead
  2. ECS-first: aligns with data-oriented design for many entities
  3. Modular: opt into only the features needed
  4. PBR rendering + built-in atmosphere, bloom, cascaded shadows
  5. Active development: regular releases

Alternatives Considered:

AlternativeProsConsRejected Because
AmethystMature ECSNo longer actively developedNot a Rust ECS we can build on long-term
GodotMature, full-featuredGDScript/C++ not RustRust bindings are third-party, not first-class
Raw wgpuFull controlLow-level, boilerplateToo much work for scope
Three.js (WASM)Web targetJS overhead, different runtimeNot native Rust

Consequences

Positive:

Negative:

Related