Bezier Tweening Speed Test - How Fast is TweenMax?
With the release of TweenMax, bezier tweening has finally made its way into the TweenLite family. But how well does it perform? TweenLite has gotten a lot of attention because of its speed and scalability, but will the extra code in TweenMax weigh it down and kill performance? Well, I sure tried to keep things nimble and I think you'll be pleased, but don't take my word for it. See for yourself. I ported my speed test over to do bezier tweens compared to the only other tweening engines I knew of that do bezier tweening - Tweener and Twease (the AS3 version of Twease isn't quite ready yet though). Dowload the source file here: AS2 or AS3. No trickery involved; the same code drives everything except for the tweens themselves. Basically it tweens white "stars" from the center outward at random angles, sizes, and with random delays. It randomly chooses a two control point bezier path for each star. When a star's tween ends, it just repositions itself at the center and starts again. You can play with the number of stars and the duration of the tweens to see how the tweening engines handle various types of loads .
And here's a similar AS3 test. Keep in mind that AS3 runs in the MUCH faster AVM2, so I kicked up the instance numbers to keep it challenging.
Click here to see the standard speed tests.
Get more info about TweenMax here: TweenMax (AS2) OR TweenMax (AS3)
on April 6th, 2008 at 4:41 am
Nicely done! Checking it out now. Glad you made the performance focus a main feature.
on April 8th, 2008 at 1:24 pm
Holy crap, you’re amazing. I’ve used TweenLite in more projects than I can count. I can’t believe you’re continuing to make it better!
on April 8th, 2008 at 4:41 pm
Your work is truly amazing, but you already know it.