Struct TimingOptions

Struct Documentation

struct TimingOptions

Inert pacing and bounded-recovery settings validated by Scheduler construction.

Public Members

::CE::Runtime::Simulation::Mode mode = ::CE::Runtime::Simulation::Mode::Variable

Select variable pacing or fixed-step accumulation.

::CE::Runtime::Simulation::Clock::duration variable_interval = std::chrono::duration_cast<::CE::Runtime::Simulation::Clock::duration>(std::chrono::nanoseconds{16666667})

Nonnegative minimum accumulated duration before a variable update.

Zero permits an unpaced loop.

::CE::Runtime::Simulation::Clock::duration fixed_step = std::chrono::duration_cast<::CE::Runtime::Simulation::Clock::duration>(std::chrono::nanoseconds{16666667})

Strictly positive duration of each ordinary fixed update; independent of wall-clock frame frequency.

std::size_t max_fixed_updates = 1

Positive maximum fixed updates before overload recovery.

::CE::Runtime::Simulation::LagRecovery recovery = ::CE::Runtime::Simulation::LagRecovery::DropExcessLag

Behavior when fixed-step debt exceeds the budget.

std::size_t fixed_updates_before_recovery = 0

Fixed prefix for overloaded VariableCatchUp; must not exceed max_fixed_updates.

::CE::Runtime::Simulation::Clock::duration recovery_cap = std::chrono::milliseconds{100}

Maximum variable recovery delta; nonnegative, with zero disabling this cap.