From 8bc0eb45ee56feb75b79599dc136203abbd72eeb Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Mon, 18 May 2020 14:53:57 -0700 Subject: [PATCH] print average fps and smooth out average a little bit --- crates/bevy_diagnostic/src/frame_time_diagnostics_plugin.rs | 4 ++-- examples/ui/text.rs | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/bevy_diagnostic/src/frame_time_diagnostics_plugin.rs b/crates/bevy_diagnostic/src/frame_time_diagnostics_plugin.rs index bc9ed32037..f262d0c4df 100644 --- a/crates/bevy_diagnostic/src/frame_time_diagnostics_plugin.rs +++ b/crates/bevy_diagnostic/src/frame_time_diagnostics_plugin.rs @@ -19,8 +19,8 @@ impl FrameTimeDiagnosticsPlugin { DiagnosticId::from_u128(54021991829115352065418785002088010276); pub fn setup_system(mut diagnostics: ResMut) { - diagnostics.add(Diagnostic::new(Self::FRAME_TIME, "frame_time", 10)); - diagnostics.add(Diagnostic::new(Self::FPS, "fps", 10)); + diagnostics.add(Diagnostic::new(Self::FRAME_TIME, "frame_time", 20)); + diagnostics.add(Diagnostic::new(Self::FPS, "fps", 20)); } pub fn diagnostic_system(mut diagnostics: ResMut, time: Res