bevy_framepace icon indicating copy to clipboard operation
bevy_framepace copied to clipboard

support environments other than `bevy_winit`

Open soqb opened this issue 2 years ago • 2 comments

when writing a tui with bevy, i found myself reaching for bevy_framepace but discovered it relies on bevy_winit in all cases.

this PR gates the refresh rate fetching logic behind a new "window" feature so that the plugin's main algorithm can be used outside of a windowed environment.

for Limiter::Auto, when the feature is not enabled, i chose 15fps as the default, which i think is reasonable for most tuis.

soqb avatar Aug 14 '23 08:08 soqb

It seems strange to me to bake in defaults for TUI in a framepacing plugin. I'm not sure what the point of this crate is for that use case, it seems like you would be better off simply running a fixed rate or custom runner.

aevyrie avatar Oct 23 '23 20:10 aevyrie