Bevy Version: | 0.9 | (outdated!) |
---|
Show Framerate in Console
Click here for the full example code.
You can use bevy's builtin diagnostics system to print framerate (FPS) to the console, for monitoring performance.
use bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin};
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(LogDiagnosticsPlugin::default())
.add_plugin(FrameTimeDiagnosticsPlugin::default())
.run();
}