#game-engine #fps #counter #bevy-ui #fancy

bevy-fps-ui

Fancy FPS counter for Bevy Game Engine

7 releases

new 0.3.0 Dec 11, 2024
0.2.0 Jul 6, 2024
0.1.4 Jul 2, 2024
0.1.3 Jun 27, 2024

#1894 in Game dev

MIT/Apache

36KB
68 lines

bevy-fps-ui

Simple and fancy FPS counter for Bevy Game Engine image

Instalation

Via terminal: cargo add bevy-fps-ui

Or add this to your Cargo.toml dependencies: bevy-fps-ui = "0.3.0"

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.15 0.3
0.14 0.2
0.13 0.1

lib.rs:

Basic FPS counter

Dependencies

~21–32MB
~517K SLoC