More accurate iterative brightness scaling algorithm
Prevent currentScale from reaching zero

This would cause the algorithm to get stuck forever
Fix XYZW speed timestep