#diagnostics #count #mesh #vertex #bevy

bevy_diagnostic_vertex_count

Bevy diagnostics plugin for counting vertices of all present meshes in a world

2 unstable releases

0.2.0 Aug 4, 2022
0.1.0 May 2, 2022

#1544 in Game dev

Apache-2.0 OR MIT

7KB

Bevy tracking crates.io

USE

use bevy::{
    prelude::*,
    diagnostic::LogDiagnosticsPlugin,
};
use bevy_diagnostic_vertex_count::{VertexCountDiagnosticsPlugin, VertexCountDiagnosticsSettings};

fn main() {
    App::new()
        .insert_resource(VertexCountDiagnosticsSettings { 
            only_visible: true // Set whether only visible meshes should be diagnosed. Defaults to true
        })
        .add_plugins(DefaultPlugins)
        .add_plugin(LogDiagnosticsPlugin::default()) // prints our diagnostics to the console
        .add_plugin(VertexCountDiagnosticsPlugin)
        .run();
}

VERSIONS

bevy_diagnostic_vertex_count bevy
0.2 0.8
0.1 0.7

LICENSE

Dual-licensed under APACHE-2.0 or MIT

Dependencies

~37–51MB
~721K SLoC