use super::*;
#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
pub struct PacingDecision {
#[get(type(copy))]
pub(crate) action: PacingAction,
#[get(type(copy))]
pub(crate) sim_dt_secs: f32,
#[get(type(copy))]
pub(crate) sim_dt_ns: u64,
#[get(type(copy))]
pub(crate) timestamp_ns: u64,
#[get(type(copy))]
pub(crate) input_age_ms: f32,
#[get(type(copy))]
pub(crate) should_render: bool,
#[get(type(copy))]
pub(crate) should_step_sim: bool,
}
#[derive(Clone, Copy, Data, Debug, Default, Eq, Hash, New, PartialEq)]
pub struct FramePacingStats {
#[get(type(copy))]
pub(crate) vsync_signals: u64,
#[get(type(copy))]
pub(crate) frames_submitted: u64,
#[get(type(copy))]
pub(crate) deferred_non_vsync_events: u64,
#[get(type(copy))]
pub(crate) user_cap_skips: u64,
#[get(type(copy))]
pub(crate) in_flight_waits: u64,
#[get(type(copy))]
pub(crate) missed_vsync_intervals: u64,
#[get(type(copy))]
pub(crate) timebase_rebases: u64,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct FramePacingController {
#[get(type(copy))]
pub(crate) display_hz: f32,
#[get(type(copy))]
pub(crate) native_vsync_active: bool,
#[get(skip)]
pub(crate) user_fps_cap: Option<u32>,
#[get(type(copy))]
pub(crate) max_in_flight_frames: u32,
#[get(type(copy))]
pub(crate) in_flight_frames: u32,
#[get(type(copy))]
pub(crate) last_vsync_ns: u64,
#[get(type(copy))]
pub(crate) last_submitted_vsync_ns: u64,
#[get(type(copy))]
pub(crate) last_present_ns: u64,
#[get(type(copy))]
pub(crate) fixed_step_ns: u64,
#[get(type(copy))]
pub(crate) oldest_pending_input_ns: u64,
#[get(type(copy))]
pub(crate) pending_input_dirty: bool,
#[get(type(copy))]
pub(crate) pending_layout_dirty: bool,
#[get(type(copy))]
pub(crate) stats: FramePacingStats,
}