#bevy-ui #display #bevy #perf #gamedev #customizable #game-engine


Customizable Performance/Debug Overlay for Bevy UI

5 releases

0.2.3 Mar 21, 2024
0.2.2 Mar 21, 2024
0.2.1 Mar 21, 2024
0.2.0 Mar 21, 2024
0.1.0 Mar 19, 2024

#436 in Game dev

Download history 85/week @ 2024-03-14 354/week @ 2024-03-21 122/week @ 2024-03-28 111/week @ 2024-04-04 183/week @ 2024-04-11 168/week @ 2024-04-18 189/week @ 2024-04-25 144/week @ 2024-05-02 195/week @ 2024-05-09

718 downloads per month
Used in bevy_scroller



Customizable Performance/Debug Overlay for Bevy UI

Crates.io docs MIT/Apache 2.0

Sponsor me:

GitHub Sponsors

Bevy Compatibility:

Bevy Version Plugin Version
0.13 0.2,0.1

This crate provides an implementation of an in-game performance/debug UI overlay for the Bevy game engine.

The goal of this crate is to make it as useful as possible for any Bevy project:

  • Made with Bevy UI (not egui or any other 3rd-party UI solution)
  • Easy to set up (see simple example)
  • Modular! You decide what info you want to display!
    • Choose any combination of predefined entries (see specific_entries example):
      • Framerate (FPS), Frame Time, Frame Count, ECS Entity Count, CPU Usage, RAM Usage, Wall Clock, Running Time, Fixed Time Step, Fixed Overstep, Cursor Position, Window Resolution, Window Scale Factor, Window Mode, Present Mode
    • Implement your own custom entries to display anything you like!
  • Customizable appearance/styling (see settings, fps_minimalist examples)
  • Support for highlighting values using a custom font or color!
    • Allows you to quickly notice if something demands your attention.

Spawning a Perf UI can be as simple as:


If you want to create a Perf UI with specific entries of your choice, just spawn an entity with PerfUiRoot + your desired entries, instead of using the bundle.

   // ...

If you want to customize the appearance, set the various fields in each of the structs, instead of using default().

Screenshot of the simple example showing default configuration

Screenshot of the settings example showing multiple UIs with custom configuration


~1.5M SLoC