Embedding a large amount of bitmaps crashed ipad1


i've got 700 small sprite images embed as3:

 

[embed(source="001.png" )]

private var img001:class;

 

[embed(source="002.png" )]

private var img002:class;

 

...

 


[embed(source="700.png" )]

private var img700:class;

 

 

then load class-files library can use them later.

 

bmplib.add("001", img001);

 

the lib later turns bitmap, not right away , not images.

 

while playing game on ipad, @ point ( pretty random) crashed because runs out of memory. note @ point not doing bitmaps, there's 50 on screen.

 

when reduce image count 100 or 200, fine.

if print memory usage around 50 mb in-game.

i have tested in air 3.4 , fb 4.7 preview.

 

any appriciated <3



More discussions in AIR Development


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support