hello everyone,

i'm writing a game. i want to use a large bitmap to cache the game
map, because the map doesn't change during the game play. the game map
is tile based, but i want to draw it at the beginning of the game, so
i can easy scroll the map.

problem is, the bitmap can be very large, for example 1512*1512 in
size. and i have the vm out-of-memory problem.

i'm wondering if there is a way to adjust the memory size of the vm.
and if it is safe to do so, cause i have no idea the memory size of a
common android phone.

otherwise i will think of some other way, like only draw a portion of
the map. but will that be slow? is loading file on android the same as
loading from memory?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to