This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?showtopic=193&mode=threaded as retrieved on 17 Aug 2007 15:19:44 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:a-gdv4qVPW0J:www.flashsandy.org/forum/index.php%3Fshowtopic%3D193%26amp%3Bmode%3Dthreaded+site:www.flashsandy.org+showtopic&hl=en&ct=clnk&cd=58


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: showtopic

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> TextureSkin/MovieSkin memory leak, BitmapData not picked up by gc
danielholmes
post Nov 25 2006, 09:46 AM
Post #1


Newbie
*

Group: Members
Posts: 1
Joined: 25-November 06
Member No.: 541



Hi all,

First of all, I would like to share my admiration of your work on the Sandy project kiroukou, truly brilliant and a fantastic addition to the Flash community.

I uncovered the issue using a movie skin with a movie clip which played a four frame animation (to be placed on a box). it was set to auto update each frame. While watching the task manager i saw the memory usage start to sky rocket (I had 120 faces using this skin, so a bit of an extreme case maybe?). I found the issue to be in the TextureSkin class in the begin function. I didn't look into how it worked too much, but noticed the _tmp variable was taking on a clone of a BitmapData, but wasn't disposing the old bitmap data it held. I think i saw something by that "flashguru" guy about BitmapDatas not being deleted automatically and needing an explicit deletion to be removed from memory, so i added these two lines at 124 in TextureSkin:

_tmp.dispose();
delete _tmp;

and added a

delete _texture;

to line 94 of MovieSkin just for good measure, and it seemed to fix it up. I was tinkering with a few other things, but i think that's what fixed it up.

I've been having some z buffer issues since i did this, but they sound similiar to some of the issues posted in the forum so I will give some of those fixes a go. my particular z buffer issues may have been there before too so i dont know if there are some negative side effects of my fix; i guess you would know more about that than me.

Keep up the good work and i am really looking forward to Sandy 1.2!

This post has been edited by danielholmes: Nov 25 2006, 09:50 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
kiroukou
post Nov 25 2006, 11:42 AM
Post #2


Administrator
***

Group: Root Admin
Posts: 923
Joined: 12-June 06
Member No.: 1



Hi Daniel and thank you for your nice words.

Indeed the bitmapdata needs to be disposed. You're totally right.

the Z buffer problem shall be something else (IMG:style_emoticons/default/wink.gif)

Thanks for your report, and stay in the starting block for the 1.2 (IMG:style_emoticons/default/wink.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 17th August 2007 - 02:57 PM
phpMyVisites