Question
Memory usage on loaded bitmaps.
Hi,
When loading an image from a folder (1920x1920) and adding to stage, the memory use in Scout goes up to 14.4mb (Bitmap DisplayObjects).
When instantiating the same image from library and adding to stage, the memory stays at 3.6mb.
Am I missing something?
I'm running CS6 with Air 23.
Here's my code:
| public function loadBitmap(): void | |||
| { | |||
| var loader:Loader = new Loader(); | |||
| loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaded); | |||
| loader.load(new URLRequest("app:/assets/images/WIND.png")); | |||
| } | |||
| function onLoaded(event){ | |||
| var bitmap:Bitmap = new Bitmap(event.target.content.bitmapData, "auto", true); | |||
| addChild(bitmap); | |||
| } | |||
| function loadFromLibrary(){ | |||
| var bitmap:Bitmap = new Bitmap(new Wind(0,0), "auto", true); | |||
| addChild(bitmap); | |||
| } |
Regards,
T
