Jump to content

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

It is bad to not .kill() the TweenLite.delayedCall() ?

Recommended Posts

Hi! :)


If I use multiple times without a variable reference

//var myVar = TweenLite.delayedCall();


If I do not call the .kill(), it will increase my memory?


Or the delayedCall() have an onComplete() Event to be able to kill() after the calling.?


I use the delayedCall() in a loop multiple times with different parameters...


Thanks a lot.

Link to comment
Share on other sites

No, you don't have to worry about that. A lot of time went into making sure GSAP is efficient with memory and cleans up after itself. There's no need to manually kill() every tween or delayed call. Everything that's finished gets released internally within about 2 seconds. 


Happy tweening!

  • Thanks 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.