Graphics Horse
Member
This is impressive! Very ambitious stuff.
What happens if I write Mountain, Tunnel or Galaxy?
Doing it that way would be VERY inefficient, all those null characters for nothing. If you were really trying to optimise it for space you could get it down to 5 bit characters (no numbers etc.) The words could also be indexed for the first 2 or 3 letters for efficient searching, so the first few letters of each word wouldn't actually need to be stored each time.
What happens if I write Mountain, Tunnel or Galaxy?
Stumpokapow said:assuming two-byte characters and ten characters a word (realistically if the game is using ascii, it's seven bit or one byte characters and few words are going to be ten characters), you're looking at twenty bytes per word. that's fifty words per kilobyte, or fifty thousand words per megabyte. multiply by five languages, and you're looking at five megabytes per fifty thousand objects, conservatively.
Doing it that way would be VERY inefficient, all those null characters for nothing. If you were really trying to optimise it for space you could get it down to 5 bit characters (no numbers etc.) The words could also be indexed for the first 2 or 3 letters for efficient searching, so the first few letters of each word wouldn't actually need to be stored each time.