Jump to content
GreenSock

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

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();
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.

Share this post


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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×