lwmirkk Posted March 18, 2018 Share Posted March 18, 2018 Hi! I have two videos on the timeline: After some seconds of the playing of the second video, it calls dispose() of the first one. But the dispose free the memory from the first one so fast that the play of the second video gives a small "bottleneck" in playback at the time of the dispose(). A "bottleneck" of half a second, but ideally it would not "bottleneck" anything and the playback would be 100% fluid. Is there a way of the dispose() free the memory more slowly? Thanks a lot. Link to comment Share on other sites More sharing options...
GreenSock Posted March 19, 2018 Share Posted March 19, 2018 Sorry, @lwmirkk, I don't entirely understand the question and I can't think of any way that dispose() could be forced to free memory more slowly (that seems quite undesirable actually). Also, for the record, the AS3 tools haven't been actively supported for years but you're totally welcome to use them. Cheers! 1 1 Link to comment Share on other sites More sharing options...
lwmirkk Posted March 19, 2018 Author Share Posted March 19, 2018 Thanks. Did you know something similar to the GreenSock Timeline to AS3? The GS to AS3 is very good, but like you said, years without updates, for a good reason (html5). Thanks a lot. =) Link to comment Share on other sites More sharing options...
Carl Posted March 19, 2018 Share Posted March 19, 2018 Hi lwmirkk, Having trouble understanding your reply, but just to be clear, mostly all of our AS3 tools have been converted to JavaScript for HTMl5 projects and are being used on over 3 million sites. So if you need to do scripted animation in JavaScript, you can use all your GreenSock knowledge and get amazing results. If you are asking about another tool that someone else makes for scripted animation for AS3, no, I don't think anyone is investing time or money in that, but I haven't paid attention to the AS3 world for many years. 1 1 Link to comment Share on other sites More sharing options...
lwmirkk Posted January 3, 2019 Author Share Posted January 3, 2019 On 3/19/2018 at 12:54 AM, GreenSock said: Sorry, @lwmirkk, I don't entirely understand the question and I can't think of any way that dispose() could be forced to free memory more slowly (that seems quite undesirable actually). Also, for the record, the AS3 tools haven't been actively supported for years but you're totally welcome to use them. Cheers! Hi again @Carl and @GreenSock ! ? I'm thinking about this question, and this may work:? var myLoader = Loader();.... //example, but would be any Greensock loader - Loading a huge 4k video //today myLoader.dispose(true); //framerate drops for some frames because the content is huge. //this would do the dispose "slowly"? myLoader.unload(); setTimeout(function(){ myLoader.dispose();//"true" - probably it is not necessary },5000); Thanks again and sorry for the old thread. 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