aevyrie / bevy_framepace

Framepacing and framelimiting for Bevy

Home Page:https://crates.io/crates/bevy_framepace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unnessary allocation in `Limiter` `Display`

RedRam567 opened this issue · comments

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.