Skip to content

Commit f3974aa

Browse files
Add RenderDiagnosticsPlugin to diagnostics example (#16741)
Improve the example. Co-authored-by: Alice Cecile <[email protected]>
1 parent 854934c commit f3974aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/diagnostics/log_diagnostics.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ fn main() {
1515
LogDiagnosticsPlugin::default(),
1616
// Any plugin can register diagnostics. Uncomment this to add an entity count diagnostics:
1717
// bevy::diagnostic::EntityCountDiagnosticsPlugin::default(),
18+
1819
// Uncomment this to add an asset count diagnostics:
1920
// bevy::asset::diagnostic::AssetCountDiagnosticsPlugin::<Texture>::default(),
21+
2022
// Uncomment this to add system info diagnostics:
2123
// bevy::diagnostic::SystemInformationDiagnosticsPlugin::default()
24+
25+
// Uncomment this to add rendering diagnostics:
26+
// bevy::render::diagnostic::RenderDiagnosticsPlugin::default(),
2227
))
2328
.run();
2429
}

0 commit comments

Comments
 (0)