6 releases
0.2.0 | Jul 6, 2024 |
---|---|
0.1.4 | Jul 2, 2024 |
0.1.3 | Jun 27, 2024 |
#1205 in Game dev
33KB
64 lines
bevy-fps-ui
Simple and fancy FPS counter for Bevy Game Engine
Instalation
Via terminal:
cargo add bevy-fps-ui
Or add this to your Cargo.toml dependencies:
bevy-fps-ui = "0.1.3"
Usage
Basically add FpsCounterPlugin
to your app:
use bevy::prelude::*;
use bevy_fps_ui::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(FpsCounterPlugin)
.run();
}
Example
You can run example with
cargo run --example basic
also see basic example
Compatibility with Bevy
bevy |
bevy-fps-ui |
---|---|
0.14 |
0.2 |
0.13 |
0.1 |
lib.rs
:
Basic FPS counter
Dependencies
~23MB
~420K SLoC