Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
text.string memory? #176720
01/06/08 11:41
01/06/08 11:41
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
hi!
I'm creating a (possibly) very long list of string. it varies in length every time you run the game.
I'm using text.string for the list elements, and now I'm trying to figure out: if the list is 100 elements long, and I have ste the text.strings variable to 150, do the 50 empty strings take up any memory? Cause if not, I can set the text.strings variable to a very high number. that way the list can get very long, and I can display all the data, without having a performance loss or too much memory used up when the list is shorter than it's maximum length...

Micha


~"I never let school interfere with my education"~
-Mark Twain
Re: text.string memory? [Re: Germanunkol] #176721
01/06/08 19:44
01/06/08 19:44
Joined: Jun 2004
Posts: 12
cweth Offline
Newbie
cweth  Offline
Newbie

Joined: Jun 2004
Posts: 12
I would think it would take up space in memory, probably the minimum space allowable for the data type each element is holding, a string in this case. But i don't know for certain.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1