use super::*;
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct FrameClock {
#[get(type(copy))]
pub(crate) fixed_dt: f32,
#[get(type(copy))]
pub(crate) fixed_step_ns: u64,
#[get(type(copy))]
pub(crate) max_substeps: u32,
#[get(type(copy))]
pub(crate) accumulator_ns: u64,
#[get(type(copy))]
pub(crate) accumulator: f32,
#[get(type(copy))]
pub(crate) delta_ns: u64,
#[get(type(copy))]
pub(crate) delta_secs: f32,
#[get(type(copy))]
pub(crate) elapsed_ns: u64,
#[get(type(copy))]
pub(crate) elapsed_secs: f64,
#[get(type(copy))]
pub(crate) alpha: f32,
#[get(type(copy))]
pub(crate) fps: f32,
#[get(type(copy))]
pub(crate) frame_count: u64,
#[get(type(copy))]
pub(crate) fixed_step_count: u64,
}
#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
pub struct SimPresentFrame {
#[get(type(copy))]
pub(crate) fixed_steps_run: u32,
#[get(type(copy))]
pub(crate) render_alpha: f32,
#[get(type(copy))]
pub(crate) fixed_dt_secs: f32,
#[get(type(copy))]
pub(crate) present_dt_secs: f32,
#[get(type(copy))]
pub(crate) interpolated_only: bool,
#[get(type(copy))]
pub(crate) clamped_substeps: bool,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct FixedTimestep3DSession {
#[get(type(copy))]
pub(crate) clock: FrameClock,
#[get(type(copy))]
pub(crate) present_hz: f32,
#[get(type(copy))]
pub(crate) sim_steps_total: u64,
#[get(type(copy))]
pub(crate) present_frames_total: u64,
#[get(type(copy))]
pub(crate) interpolated_only_frames: u64,
#[get(type(copy))]
pub(crate) clamped_stall_frames: u64,
#[get(type(copy))]
pub(crate) last_alpha: f32,
#[get(type(copy))]
pub(crate) last_steps: u32,
}