bevy_diagnostic_vertex_count

Crates.iobevy_diagnostic_vertex_count
lib.rsbevy_diagnostic_vertex_count
version0.2.0
sourcesrc
created_at2022-05-02 20:18:48.557871
updated_at2022-08-04 09:19:45.058229
descriptionBevy diagnostics plugin for counting vertices of all present meshes in a world
homepage
repositoryhttps://github.com/DMClVG/bevy_diagnostic_vertex_count
max_upload_size
id579334
size16,955
AV (DMClVG)

documentation

README

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

Commit count: 6

cargo fmt