diff --git a/src/main.rs b/src/main.rs index 70f9b3a..f007546 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,10 @@ mod falling_sand; -use bevy::{prelude::*, window::PresentMode}; +use bevy::{ + diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin}, + prelude::*, + window::PresentMode, +}; fn main() { let window_plugin = WindowPlugin { @@ -19,6 +23,8 @@ fn main() { .set(window_plugin) .set(ImagePlugin::default_nearest()), ) + .add_plugins(FrameTimeDiagnosticsPlugin) + .add_plugins(LogDiagnosticsPlugin::default()) .add_plugins(falling_sand::FallingSandPlugin) .add_systems(Startup, setup) .insert_resource(ClearColor(Color::rgb_u8(45, 42, 46)))