tess 0.4.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::FixedStepAccumulator Class Reference

#include <tess/sim/time.h>

Public Member Functions

constexpr FixedStepAccumulator (std::uint32_t base_tps, std::size_t max_ticks_per_frame) noexcept
constexpr auto base_tps () const noexcept -> std::uint32_t
constexpr auto max_ticks_per_frame () const noexcept -> std::size_t
constexpr auto accumulated_seconds () const noexcept -> double
constexpr void reset () noexcept
constexpr auto consume (double real_delta_seconds, SimTimeControl control) noexcept -> FixedStepFrame

Detailed Description

Converts real-time deltas into bounded, deterministic fixed-tick grants.

The object owns its carry between frames and performs no allocation.


The documentation for this class was generated from the following file: