mirror of
https://github.com/bevyengine/bevy
synced 2024-11-14 00:47:32 +00:00
6d6bc2a8b4
This is extracted out of eb8f973646476b4a4926ba644a77e2b3a5772159 and includes some additional changes to remove all references to AppBuilder and fix examples that still used App::build() instead of App::new(). In addition I didn't extract the sub app feature as it isn't ready yet. You can use `git diff --diff-filter=M eb8f973646476b4a4926ba644a77e2b3a5772159` to find all differences in this PR. The `--diff-filtered=M` filters all files added in the original commit but not in this commit away. Co-Authored-By: Carter Anderson <mcanders1@gmail.com>
21 lines
904 B
Rust
21 lines
904 B
Rust
use bevy::{
|
|
diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin},
|
|
prelude::*,
|
|
};
|
|
|
|
fn main() {
|
|
App::new()
|
|
.add_plugins(DefaultPlugins)
|
|
// Adds frame time diagnostics
|
|
.add_plugin(FrameTimeDiagnosticsPlugin::default())
|
|
// Adds a system that prints diagnostics to the console
|
|
.add_plugin(LogDiagnosticsPlugin::default())
|
|
// Any plugin can register diagnostics
|
|
// Uncomment this to add some render resource diagnostics:
|
|
// .add_plugin(bevy::wgpu::diagnostic::WgpuResourceDiagnosticsPlugin::default())
|
|
// Uncomment this to add an entity count diagnostics:
|
|
// .add_plugin(bevy::diagnostic::EntityCountDiagnosticsPlugin::default())
|
|
// Uncomment this to add an asset count diagnostics:
|
|
// .add_plugin(bevy::asset::diagnostic::AssetCountDiagnosticsPlugin::<Texture>::default())
|
|
.run();
|
|
}
|