aevyrie / bevy_framepace

Framepacing and framelimiting for Bevy
https://crates.io/crates/bevy_framepace
Apache License 2.0
219 stars 24 forks source link

Handle errors more gracefully in get_display_refresh_rate #18

Closed alice-i-cecile closed 1 year ago

alice-i-cecile commented 1 year ago

There are a number of unwraps here: https://github.com/aevyrie/bevy_framepace/blob/fa6bb984ed77e0856f56f2eda979186e3da5ba5e/src/lib.rs#L99

As far as I can tell, these could all just result in an early return instead, delaying the work if a monitor's frame rate could not be properly assessed.