```rust use bevy::{ prelude::*, diagnostic::LogDiagnosticsPlugin, }; use bevydiagnosticvertex_count::{VertexCountDiagnosticsPlugin, VertexCountDiagnosticsSettings};
fn main() { App::new() .insertresource(VertexCountDiagnosticsSettings { onlyvisible: true // Set whether only visible meshes should be diagnosed. Defaults to true }) .addplugins(DefaultPlugins) .addplugin(LogDiagnosticsPlugin::default()) // prints our diagnostics to the console .add_plugin(VertexCountDiagnosticsPlugin) .run(); } ```
Dual-licensed under APACHE-2.0 or MIT