[![stable pipeline](https://gitlab.com/cyloncore/bevy_ratepace/badges/stable/pipeline.svg?key_text=stable)](https://gitlab.com/cyloncore/bevy_ratepace/-/pipelines?ref=stable) [![docs](https://docs.rs/bevy_ratepace/badge.svg)](https://docs.rs/bevy_ratepace) [![crates.io](https://img.shields.io/crates/v/bevy_ratepace.svg)](https://crates.io/crates/bevy_ratepace)
bevy_ratepace ============= `bevy_ratepace` is a crate to configure the update frequency of headless bevy. The code is based on [https://github.com/aevyrie/bevy_framepace](bevy_framepace). How to use ---------- Add to your project with: ```bash cargo add bevy_ratepace ``` Add `bevy_ratepace` as a plugin: ```rust use bevy::prelude::*; fn set_frame_rate(mut settings: ResMut) { settings.limiter = bevy_ratepace::Limiter::from_framerate(10.0); } fn main() { App::new() .add_systems( Startup, ( set_frame_rate, ), ) .add_plugins((bevy_ratepace::RatepacePlugin)); } ```