aevyrie / bevy_framepace

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

Unnessary allocation in `Limiter` `Display` #48

Closed RedRam567 closed 3 weeks ago

RedRam567 commented 6 months ago

Every branch allocates a String just to pass it to write!(). write!() supports all the normal formatting that println!() uses, so you can just use write!() in every branch. It doesn't matter too much though, as its only really used in the demo app.