Skip to main content

retroglyph_core/frames/
mod.rs

1//! [`FrameClock`](crate::frames::FrameClock) and [`FrameStats`](crate::frames::FrameStats), the two accumulators behind the `App`/`Frame` game loop.
2//!
3//! Both are pure accumulators fed by [`Frame::delta`](crate::app::Frame): neither reads a clock
4//! itself, they only consume wall time the driver hands them, which keeps both `no_std`-clean and
5//! platform-agnostic (including wasm, where there is no `std::time::Instant`). Split across
6//! `clock.rs`/`stats.rs` (this file just re-exports), one file per concept: [`FrameClock`](crate::frames::FrameClock)
7//! decouples fixed-rate logic updates from rendering, [`FrameStats`](crate::frames::FrameStats) is a rolling window of frame
8//! durations for a live perf/FPS overlay.
9
10mod clock;
11mod stats;
12
13pub use clock::FrameClock;
14pub use stats::FrameStats;