-
Enhancement
-
Resolution: Fixed
-
P3
-
fx1.2
Interpolators other than LINEAR and DISCRETE are significantly slower on mobile devices. The easing interpolation implemented in Interpolators.Easing.interpolate() performs a number of floating-point operations for each step and needs to be optimized. The goal is to reduce the number of FP-operations needed in the method interpolate().
1) Some of the intermediate results don't need to be calculated in every step, but only once (e.g. the runRate etc.)
2) Instead of implementing a general purpose algorithm, we should provide optimized versions with fixed acceleration and deceleration. That way we can avoid even more operations.
1) Some of the intermediate results don't need to be calculated in every step, but only once (e.g. the runRate etc.)
2) Instead of implementing a general purpose algorithm, we should provide optimized versions with fixed acceleration and deceleration. That way we can avoid even more operations.