bevy/examples/diagnostics/print_diagnostics.rs
2020-05-04 14:14:49 -07:00

12 lines
294 B
Rust

use bevy::{
diagnostic::{FrameTimeDiagnosticsPlugin, PrintDiagnosticsPlugin},
prelude::*,
};
fn main() {
App::build()
.add_default_plugins()
.add_plugin(FrameTimeDiagnosticsPlugin::default())
.add_plugin(PrintDiagnosticsPlugin::default())
.run();
}