Megazine3 seem to use a LOT of memory even to the point that IE crashes.
During tests, I've used the following setup: no plugins, 22 pages in memory, around 70 pages total, with each page loading a jpg at around 500-1000KB. The exact book element:
<book pagepreview="false" bggradient="false" centercovers="false" cornerhint="false" dragrange="30" dragspeed="1" maxloaded="22" maxscale="3" minscale="2" pagewidth="782" pageheight="1088" plugins="" reflectionskip="false" startpage="1" zoomminscale="0.36764705882352944" zoomwheel="false" jsenabled="true">
I'm using Megazine3 version 2.0.8. I’m profiling with the Flash Builder 4 and IE8. My system has 6GB RAM.
When running the Flex profiler with IE8 the memory consumption seems logical: after megazine has initialized and loaded the first pages (22/2), the memory starts at 280 000K. Then for the first 6 page turns, the memory goes up in 50 000K increments. When it reaches around 550 000K, it "normalizes" and remains for a long time. Sometimes, memory consumption dips down more than 200 000K, to immediately bounce back to around 550 000K. After flipping through the whole book and halfway back again, there's a point when lot of memory is reclaimed, down to around 340 000K. This is quite close to where it started. The memory consumption in IE8 matches that of the profiler, except that it has another 100 000K on top. I guess this accounts for IE itself and maybe some content.
But when running megazine in IE8, WITHOUT the profiler, it's a very different story: memory consumption starts at the same level, around 350 000K, increments in 50 000K steps with each page turn. Now, however, the memory level quickly reaches to 1 000 000K. Next, it drops to around twice the starting amount. For the next 20 or so page turns, one of two things typically happen: if I turn the pages slow, the memory may again drop to twice the starting amount. But if I turn them at a more normal pace, the memory reaches to 1 500 000K, at which IE crashes.
Are these figures normal? What can we do to alleviate the memory consumption?
When turning a page, the memory goes up 50 000K, while the actual content being loaded is only at most 2 000K. That means some 48 000K memory is being allocated, apart from the content. Can you shed some light on this?
Do you have any idea why running the profiler makes such a huge difference?
Best Regards,
Tobias