Add diagnostic logging to many_gizmos (#17182)
# Objective Make this `stress_test` more consistent with others. ## Solution Add `LogDiagnosticsPlugin` ## Testing `cargo run --example many_gizmos`, observe frame rate now being logged.
This commit is contained in:
parent
573b980685
commit
22ab715a77
@ -3,7 +3,7 @@
|
|||||||
use std::f32::consts::TAU;
|
use std::f32::consts::TAU;
|
||||||
|
|
||||||
use bevy::{
|
use bevy::{
|
||||||
diagnostic::{Diagnostic, DiagnosticsStore, FrameTimeDiagnosticsPlugin},
|
diagnostic::{Diagnostic, DiagnosticsStore, FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
window::{PresentMode, WindowResolution},
|
window::{PresentMode, WindowResolution},
|
||||||
winit::{UpdateMode, WinitSettings},
|
winit::{UpdateMode, WinitSettings},
|
||||||
@ -24,6 +24,7 @@ fn main() {
|
|||||||
..default()
|
..default()
|
||||||
}),
|
}),
|
||||||
FrameTimeDiagnosticsPlugin,
|
FrameTimeDiagnosticsPlugin,
|
||||||
|
LogDiagnosticsPlugin::default(),
|
||||||
))
|
))
|
||||||
.insert_resource(WinitSettings {
|
.insert_resource(WinitSettings {
|
||||||
focused_mode: UpdateMode::Continuous,
|
focused_mode: UpdateMode::Continuous,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user