diff --git a/crates/bevy_diagnostic/src/frame_time_diagnostics_plugin.rs b/crates/bevy_diagnostic/src/frame_time_diagnostics_plugin.rs index 2ff6f17af4f803..e34f431e00e4d2 100644 --- a/crates/bevy_diagnostic/src/frame_time_diagnostics_plugin.rs +++ b/crates/bevy_diagnostic/src/frame_time_diagnostics_plugin.rs @@ -8,13 +8,13 @@ use bevy_ecs::system::{Res, ResMut}; pub struct FrameTimeDiagnosticsPlugin; pub struct FrameTimeDiagnosticsState { - frame_count: f64, + frame_count: u64, } impl Plugin for FrameTimeDiagnosticsPlugin { fn build(&self, app: &mut bevy_app::App) { app.add_startup_system(Self::setup_system) - .insert_resource(FrameTimeDiagnosticsState { frame_count: 0.0 }) + .insert_resource(FrameTimeDiagnosticsState { frame_count: 0 }) .add_system(Self::diagnostic_system); } } @@ -37,8 +37,8 @@ impl FrameTimeDiagnosticsPlugin { time: Res