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:
Rob Parrett 2025-01-05 21:38:28 -08:00 committed by GitHub
parent 573b980685
commit 22ab715a77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@
use std::f32::consts::TAU;
use bevy::{
diagnostic::{Diagnostic, DiagnosticsStore, FrameTimeDiagnosticsPlugin},
diagnostic::{Diagnostic, DiagnosticsStore, FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin},
prelude::*,
window::{PresentMode, WindowResolution},
winit::{UpdateMode, WinitSettings},
@ -24,6 +24,7 @@ fn main() {
..default()
}),
FrameTimeDiagnosticsPlugin,
LogDiagnosticsPlugin::default(),
))
.insert_resource(WinitSettings {
focused_mode: UpdateMode::Continuous,