Expand description
Engine configuration — hierarchical, hot-reloadable, command-line overridable.
Loads from engine.toml with sensible defaults for all settings. Supports:
- TOML serialization/deserialization
- Profile system (default, debug, release, steam_deck, low_end)
- Command-line argument overrides (
--width,--height,--no-audio, etc.) - Hot reload: watch
engine.tomlfor changes and re-apply at runtime - Validation with clamped/sanitized values
- Diff-based change detection for per-subsystem notifications
Structs§
- Accessibility
Config - Accessibility options.
- Audio
Config - Sound settings.
- Config
Diff - Bitmask of which subsystems changed in a hot-reload diff.
- Debug
Config - Debug overlays and logging settings.
- Engine
Config - Top-level engine configuration, loadable from a TOML file.
- Gameplay
Config - Game rules such as seed, difficulty and autosave.
- Input
Config - Mouse, keyboard and gamepad settings.
- Physics
Config - Physics simulation settings.
- Render
Config - Rendering and post-processing settings.
Enums§
- Audio
Backend - Audio host API preference.
- Broadphase
Strategy - Collision broadphase strategy.
- Colorblind
Mode - Colourblind compensation mode.
- LogLevel
- Log verbosity, from
Off(nothing) toTrace(everything). - Shadow
Quality - Shadow map quality level.