Skip to main content

Module config

Module config 

Source
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.toml for changes and re-apply at runtime
  • Validation with clamped/sanitized values
  • Diff-based change detection for per-subsystem notifications

Structs§

AccessibilityConfig
Accessibility options.
AudioConfig
Sound settings.
ConfigDiff
Bitmask of which subsystems changed in a hot-reload diff.
DebugConfig
Debug overlays and logging settings.
EngineConfig
Top-level engine configuration, loadable from a TOML file.
GameplayConfig
Game rules such as seed, difficulty and autosave.
InputConfig
Mouse, keyboard and gamepad settings.
PhysicsConfig
Physics simulation settings.
RenderConfig
Rendering and post-processing settings.

Enums§

AudioBackend
Audio host API preference.
BroadphaseStrategy
Collision broadphase strategy.
ColorblindMode
Colourblind compensation mode.
LogLevel
Log verbosity, from Off (nothing) to Trace (everything).
ShadowQuality
Shadow map quality level.