{"repo":"aevyrie/bevy_framepace","free":true,"listed":false,"github":"https://github.com/aevyrie/bevy_framepace","clone":"git clone https://github.com/aevyrie/bevy_framepace.git","description":"Framepacing and framelimiting for Bevy","language":"Rust","stars":376,"topics":["bevy","bevy-plugin","graphics"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"bevy framepace⏱️ Framepacing and framelimiting for Bevy Usage It's as simple as adding the plugin to your app: By default, the plugin will automatically measure your framerate and use this for framepacing. You can adjust the framerate limit at runtime by modifying the FramepaceSettings resource. For example, to set the framerate limit to 30fps: See demo.rs in the examples folder, or run with: How it works The plugin works by recording how long it takes to render each frame, and sleeping the main thread until the desired frametime is reached. This ensures the next frame isn't started until the very last moment, delaying the event loop from restarting. By delaying the event loop, and thus input collection, this reduces motion-to-photon latency by moving reading input closer to rendering the frame. The spin sleep dependency is needed for precise sleep times. The sleep function in the standard library is not accurate enough for this application, especially on Windows. Bevy Version Support I intend to track the main branch of Bevy. PRs supporting this are welcome! bevy bevy framepace ------ --------------------------- 0.19 0.22 0.18 0.21 0.17 0.20 0.16 0.19 0.15 0.18 0.14 0.17 0.13 0.15, 0.16 0.12 0.14 0.11 0.13 0.10 0.12 0.9 0.7, 0.8, 0.9, 0.10, 0.11 0.8 0.5, 0.6 0.7 0.4 0.6 0.3 License bevy framepace is free, open source and permissively licensed! Except where noted (below and/or in individual files), all code in this repository is dual-licensed under either: MIT License (LICENS","default_branch":null,"files":null,"tree":[],"storefront":"/r/aevyrie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aevyrie/bevy_framepace/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}