Original Post
Hi, not sure if this is the right forum. :S
Um, I was just trying to make a game engine today in VB 5.0, and decided I would make an array for 1 thousand in game characters, each having an inventory, skills, scripts.. etc.
All up it came to somewhere between 30 and 50 variables per character, depending on what script gets assigned to them.
What I was wondering.. is this way over the top in memory usage? I read in help that an integer only takes up 2 bytes. So does that mean if I wanted say a max off 40 mb of ram used on character information, 40 mb * 1024(kb) * 1024(b) is 41943040. Does that mean I have 41943040 bytes to use on characters? so, 41943040/1000 = 41943.04, so 41943 bytes per character? which is 10 thousand 4 byte variables...?
Im not sure if that was complete gibberish or not now that I skim over it.. hehe
My question is.. will 1 thousand lots of 30 variables (mainly integers, strings and longs) use heaps off ram?