Expand description
Small, platform-independent building blocks. Simulation time never comes from a wall clock.
use ferravex_core::{FixedClock, World};
let mut world = World::new();
world.spawn((42_u32,));
let mut clock = FixedClock::new(64.0, 8);
let frame = clock.advance(1.0 / 60.0);
for _ in 0..frame.steps { /* update systems with frame.dt */ }Re-exports§
pub use ferravex_ecs as ecs;
Modules§
- collision
- Small allocation-free 2D collision queries for game logic, independent of rendering.
- session
- Shared lifecycle and fixed-timestep coordination for local games. Shared start, pause, retry and fixed-timestep timing for local game sessions.
- telemetry
- Opt-in local recordings. GPU durations come only from tagged driver queries.
Structs§
- Entity
- Opaque slot identity. A despawned entity never becomes valid again in its world. Handles are world-local; two separate worlds may issue the same identity.
- Fixed
Clock - Frame-rate independent simulation with bounded catch-up work.
- Frame
Stats - Allocation-free statistics over the most recent
Naccepted frame times. - Frame
Step - A fixed simulation step budget with a fractional render interpolation factor.
- Tick
Batch - An allocation-free snapshot of a frame budget and its scheduled tick IDs.
- Tick
Context - Context for one scheduled fixed update, produced by
TickBatch::ticks. - World
- Sparse typed storage with generational entities and checked component borrows.
Enums§
- Fixed
Clock Error - Invalid configuration supplied to
FixedClock::try_new.