pub fn simple_arithmetic_optimization(commands: &mut Commands<'_, '_>)
Expand description
Optimizes basic arithmetic expressions with the shape
x OP constant OP constant …
NOTE: This optimizer changes the runtime behavior!
An operation like a * 2000 / 1000
can cause an overflow,
while the optimized version a * 2
might not.
For this reason it is very important that this optimizer is
not toggled between release and debug mode.