Hi John, Well, that depends on a number of factors. The type of array, the size of the array, if it is multidimensional, etc. However, If you had a standard integer array of 1024 elements that would be equal to 4112 bytes, or approximately 4.1 MB of memory. That's just one dimension. If you have a 2d array of 1024 by 1024 you would square the amount of memory being used which equals 16908544 bytes or 16.8 MB of memory. My calculations might be slightly off, but the point is arrays will add up very quickly. The larger the array the more memory being used. On today's machines 16 MB of ram is nothing, but still if there is a more efficient less memory intensive way to do this it is a good idea to do it if possible.
Cheers! On 7/28/13, john <[email protected]> wrote: > I understand the concept of creating a box like that; I just have > no clue how to implement it (which is why I'm staying as simple > as humanly possible). Would you happen to have an estimate of how > much memory a large array takes? > --- Gamers mailing list __ [email protected] If you want to leave the list, send E-mail to [email protected]. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/[email protected]. If you have any questions or concerns regarding the management of the list, please send E-mail to [email protected].
