Skip to content

Commit

Permalink
✨🔊 log fps
Browse files Browse the repository at this point in the history
  • Loading branch information
chriamue committed Jun 17, 2023
1 parent 452a002 commit 54cf1a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/game/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use bevy::prelude::*;
use bevy::diagnostic::LogDiagnosticsPlugin;
use bevy::{diagnostic::FrameTimeDiagnosticsPlugin, prelude::*};

pub mod aerodrome;
mod camera;
Expand Down Expand Up @@ -44,6 +45,8 @@ pub struct ConfigResource {

pub fn setup_game(app: &mut App, game_resource: GameResource) {
app.add_plugin(EguiPlugin)
.add_plugin(FrameTimeDiagnosticsPlugin::default())
.add_plugin(LogDiagnosticsPlugin::default())
.add_plugins(DefaultPickingPlugins)
.add_plugin(YamlAssetPlugin::<PlanesConfig>::new(&["yaml"]))
.add_plugin(YamlAssetPlugin::<AerodromeConfig>::new(&[
Expand Down

0 comments on commit 54cf1a4

Please sign in to comment.