lwmirkk Posted January 3, 2019 Share Posted January 3, 2019 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. Link to comment Share on other sites More sharing options...
GreenSock Posted January 4, 2019 Share Posted January 4, 2019 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! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now