Add RenderDiagnosticsPlugin to diagnostics example (#16741)

Improve the example.

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
This commit is contained in:
JMS55 2024-12-10 10:13:30 -08:00 committed by GitHub
parent 854934c380
commit f3974aaaea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,10 +15,15 @@ fn main() {
LogDiagnosticsPlugin::default(),
// Any plugin can register diagnostics. Uncomment this to add an entity count diagnostics:
// bevy::diagnostic::EntityCountDiagnosticsPlugin::default(),
// Uncomment this to add an asset count diagnostics:
// bevy::asset::diagnostic::AssetCountDiagnosticsPlugin::<Texture>::default(),
// Uncomment this to add system info diagnostics:
// bevy::diagnostic::SystemInformationDiagnosticsPlugin::default()
// Uncomment this to add rendering diagnostics:
// bevy::render::diagnostic::RenderDiagnosticsPlugin::default(),
))
.run();
}