f32 scale factor #8900
Labels
A-Rendering
Drawing game state to the screen
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Code-Quality
A section of code that is hard to understand or change
D-Trivial
Nice and easy! A great choice to get started with Bevy
M-Needs-Migration-Guide
A breaking change to Bevy's public API that needs to be noted in a migration guide
What problem does this solve or what need does it fill?
UiScale
andWindow
scale_factor
are represented byf64
s but it doesn't seem we get any tangible benefits from the extra precision.What solution would you like?
Use
f32
s instead.The conversions when we multiply by scale factor aren't a major source of complexity but Bevy UI has had a lot of bugs to do with scale factor and they've been reintroduced repeatedly. Any little thing that can be done to simplify how scale factor is used and reduce the confusion is worthwhile I think.
The text was updated successfully, but these errors were encountered: