pub struct DebugInfo {Show 13 fields
pub dt_ms: f64,
pub fps: f64,
pub frame_count: u64,
pub input_summary: String,
pub game_mode: String,
pub speed_multiplier: u32,
pub left_paddle_y: f32,
pub right_paddle_y: f32,
pub ball_x: f32,
pub ball_y: f32,
pub trace_buffer_usage: Option<String>,
pub trace_inputs: Option<u64>,
pub trace_dropped: Option<u64>,
}Expand description
Debug information for development.
Fields§
§dt_ms: f64Delta time in milliseconds
fps: f64Current FPS
frame_count: u64Frame count
input_summary: StringInput state summary
game_mode: StringCurrent game mode (Demo, SinglePlayer, TwoPlayer)
speed_multiplier: u32Current speed multiplier (1, 5, 10, 50, 100, 1000)
left_paddle_y: f32Left paddle Y position (center)
right_paddle_y: f32Right paddle Y position (center)
ball_x: f32Ball X position
ball_y: f32Ball Y position
trace_buffer_usage: Option<String>Trace buffer usage (frames in buffer / capacity)
trace_inputs: Option<u64>Total input events recorded
trace_dropped: Option<u64>Frames dropped from trace buffer
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DebugInfo
impl<'de> Deserialize<'de> for DebugInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DebugInfo
impl RefUnwindSafe for DebugInfo
impl Send for DebugInfo
impl Sync for DebugInfo
impl Unpin for DebugInfo
impl UnwindSafe for DebugInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more