Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Dhaval Panchal

Difference between TweenMax & TweenLite based on GC & speed ?

Recommended Posts

Is there any speed or Garbage Collection difference between TweenMax & TweenLite ?


Actually currently i'm working on site in which i'm using more than 500 tween with TweenMax , and site works perfectly in firefox but in chrome and safari tween lag very badly.


link of my demo page


Link to post
Share on other sites

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 post
Share on other sites
Thank you Jack for your reply , i'm big fan of your work and yes 'force3D:true' works for me.

 

and i was just asking you about switching from TweenLite to TweenMax causes any problem or not

 

 

Again Thanks Jack  :) .

Link to post
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.

×