From 4d5f9be124ebf315641893dbfcfe9e855f8e3d34 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 2 Aug 2024 12:07:12 -0500 Subject: [PATCH] Cleanup --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index cead6e1..bea9022 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,6 @@ mod statue; use bevy::asset::load_internal_binary_asset; use bevy::audio::{AudioPlugin, SpatialScale}; -use bevy::diagnostic::{DiagnosticsStore, FrameTimeDiagnosticsPlugin}; use bevy::window::{PrimaryWindow, WindowMode}; use input::Input; use prelude::*; @@ -59,7 +58,7 @@ fn main() -> AppExit { ..default() }) .set(ImagePlugin::default_nearest()), - FrameTimeDiagnosticsPlugin, + bevy::diagnostic::FrameTimeDiagnosticsPlugin, bevy_framepace::FramepacePlugin, bevy_inspector_egui::quick::WorldInspectorPlugin::new(), )); @@ -162,7 +161,7 @@ fn update( view: Res>, input: Res, mut next_state: ResMut>, - diagnostics: Res, + diagnostics: Res, mut query: Query<&mut Text, With>, mut window: Query<&mut Window, With>, keys: Res>, @@ -200,7 +199,7 @@ fn update( } } for mut text in &mut query { - if let Some(fps) = diagnostics.get(&FrameTimeDiagnosticsPlugin::FPS) { + if let Some(fps) = diagnostics.get(&bevy::diagnostic::FrameTimeDiagnosticsPlugin::FPS) { if let Some(value) = fps.smoothed() { text.sections[1].value = format!("{value:.2}"); }