Map and Heap Size

Would a map that had 4 .png files each 4000x4000 take up 64MB (length x width x 4
bytes per pixel) of memory or 4 times that much?
Presently I’m designing a mod in vassal v 3.1 with a very large map and would like it to be manageable on the heap & stack size, say less than 1 Gig.

thanks,

Chris

The full combined campaign game for Devil’s Cauldron/Where Eagles Dare has about 15 maps each 3000x2000 ish so you should have no trouble

Thus spake chap:

Would a map that had 4 .png files each 4000x4000 take up 64MB (length x
width x 4
bytes per pixel) of memory or 4 times that much?

The whole map would be about 244MB (4000 * 4000 * 4 * 4 / 1024 / 1024).

Presently I’m designing a mod in vassal v 3.1 with a very large map and
would like it to be manageable on the heap & stack size, say less than 1
Gig.

This will matter much less with VASSAL 3.2, since there we’re caching
map tiles on disk.


J.

Thanks Guys!
I won’t worry then about the sizes I’m at now and will also look to build this ultimately in 3.2.

Chris