Bitmapdata heavy usage - memory disaster (spark/FB4)

Posted by keyle on Stack Overflow See other posts from Stack Overflow or by keyle
Published on 2010-04-12T10:03:15Z Indexed on 2010/04/12 21:13 UTC
Read the original article Hit count: 372

Filed under:
|
|
|

I've got a flex component which works pretty well but unfortunately turns into a disaster once used in a datagroup item renderer of about 40-50 items.

Essentially it uses bitmapdata to take screenshot of a fully-rendered webpage in mx:HTML (this version of webkit rocks btw, miles better than flex 3).

The code is pretty self-explanatory I think.

http://noben.org/show/PageGrabber.mxml

I've optimized it all I could, browsed, search for answers and already trimmed it down a lot, I'm desparate to reduce the memory usage (about 600mb after 100 draw)

The Garbage collector has little effect.

Thanks! Nic

© Stack Overflow or respective owner

Related posts about air

Related posts about flex4