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

bevy-fps-ui

Fancy FPS counter for Bevy Game Engine

6 releases

0.2.0 Jul 6, 2024
0.1.4 Jul 2, 2024
0.1.3 Jun 27, 2024

#1518 in Game dev

MIT/Apache

33KB
64 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.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

~24MB
~454K SLoC