Jump to content
Search Community

Difference between TweenMax & TweenLite based on GC & speed ?

Dhaval Panchal test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

It's highly unlikely you'd notice any performance difference between the two, but technically TweenLite is very slightly faster (again, I'd be shocked if it's even slightly noticeable). TweenMax has a few more properties, so instances take up a bit more memory. Again, not significant. 

 

In the VAST majority of cases, performance problems have nothing to do with TweenLite or TweenMax - it's the graphics rendering in the browser that takes exponentially more horsepower to complete. In other words, JavaScript execution is a small percentage of the overall CPU/GPU drain. You might want to try setting force3D:true on tweens to force the target onto its own GPU layer. And there are many other things you might be doing to hurt performance, but we don't generally provide free consulting for performance issues on entire projects. If you have a very specific question about a particular reduced test case, we'd be happy to take a peek and offer advice. 

 

Were you saying that switching from TweenLite to TweenMax causes a massive slowdown or were you just asking about whether or not there would be a theoretical performance difference? 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...