2020-05-04 21:14:49 +00:00
|
|
|
use bevy::{
|
|
|
|
diagnostic::{FrameTimeDiagnosticsPlugin, PrintDiagnosticsPlugin},
|
|
|
|
prelude::*,
|
|
|
|
};
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
App::build()
|
2020-11-03 03:01:17 +00:00
|
|
|
.add_plugins(DefaultPlugins)
|
2020-05-18 01:48:14 +00:00
|
|
|
// Adds frame time diagnostics
|
2020-05-04 21:14:49 +00:00
|
|
|
.add_plugin(FrameTimeDiagnosticsPlugin::default())
|
2020-05-18 01:48:14 +00:00
|
|
|
// Adds a system that prints diagnostics to the console
|
2020-05-04 21:14:49 +00:00
|
|
|
.add_plugin(PrintDiagnosticsPlugin::default())
|
2020-05-18 01:48:14 +00:00
|
|
|
// Any plugin can register diagnostics
|
|
|
|
// Uncomment this to add some render resource diagnostics:
|
|
|
|
// .add_plugin(bevy::wgpu::diagnostic::WgpuResourceDiagnosticsPlugin::default())
|
2020-05-04 21:14:49 +00:00
|
|
|
.run();
|
|
|
|
}
|