bevy_tweening icon indicating copy to clipboard operation
bevy_tweening copied to clipboard

Fix questionable use of floats and re-work all ticking logic

Open SUPERCILEX opened this issue 3 years ago • 0 comments

What's broken?

  • Float usage inconsistently used f64 or f32. I changed everything to be f32 since precision isn't really the priority in games.
  • Float rounding issues were present in several places. For example, the AnimClock never reset the elapsed time leading to a continual loss of precision as the animation progressed.
  • Sequences did not handle deltas that crossed animation boundaries. This meant that if a one-hour delta was received, only one animation would complete instead of all of them.
  • I tried to simplify all the other logic in the process while improving performance.

SUPERCILEX avatar May 08 '22 03:05 SUPERCILEX