mirror of
https://github.com/bevyengine/bevy
synced 2024-11-29 08:00:20 +00:00
17 lines
600 B
Rust
17 lines
600 B
Rust
use bevy::{
|
|
diagnostic::{FrameTimeDiagnosticsPlugin, PrintDiagnosticsPlugin},
|
|
prelude::*,
|
|
};
|
|
|
|
fn main() {
|
|
App::build()
|
|
.add_default_plugins()
|
|
// Adds frame time diagnostics
|
|
.add_plugin(FrameTimeDiagnosticsPlugin::default())
|
|
// Adds a system that prints diagnostics to the console
|
|
.add_plugin(PrintDiagnosticsPlugin::default())
|
|
// Any plugin can register diagnostics
|
|
// Uncomment this to add some render resource diagnostics:
|
|
// .add_plugin(bevy::wgpu::diagnostic::WgpuResourceDiagnosticsPlugin::default())
|
|
.run();
|
|
}
|