|
From: ooba on 18 Apr 2008 09:37 Hello Flashers, Memory consumption of a running swf file has always been a concern of mine. Is there any tool out there (Not Microsoft Task Manager) that I can see how much memory a swf I am running is taking up? The reason for is because I'm not clear on how the swf handles the following but my assumption is that the memory is double due to the following. I have a whole data management structure that is built when parsing over an xml document where objects are created and audio files are loaded. In order for me to manage the audio files loaded I have also created an audio manager that each loaded audio file registers with in an array in order to keep track of playhead positions, if active and name lookup. So, my thought is that by also registering the audio file in this registration managers object the memory is now doubled for the audio file (not efficient in my mind) so, if someone can point me to a tool where I can actually test something like this to see if it is actually doubled up it would be helpful, or if you have any suggestions on a way to manage the audio files I would like to hear from you also. Keep in mind that the data structure that I am building each of the objects are seperate classes where I do not want them to have to have knowledge on the environment they are imported in. I want them generic so I can use them anywhere and not have to touch the code in these classes other than to improve their functionality but not to get them to work in individual environments. Thank you all for taking the time to read.
From: dzedward on 18 Apr 2008 17:38 Hey ooba, if I recall, you're using AS2..?.. In AS3 you can use the totalMemory method of the System class, which gives you the amount of memory that flash player is using. However, in AS2, I'm not sure if there is a method for that, I don't recall. But, you can always load your as2 swf into an as3 swf and use that method for testing.
|
Pages: 1 Prev: Latest versions of Flash allows high-quality audio? Next: AC_ActiveContent error |