Not sure if this is the best category for this topic, but it felt the most correct.
Anyways I have a module script that stores data for my game.
["Visage Relic"] = {
Image = "0",
Type = "SEASONAL",
Season = "Summer",
},
["Vlad's Coffin"] = {
Image = "0",
Type = "SEASONAL",
Season = "Fall",
},
["Voodoo Bone Witch"] = {
Image = "0",
Type = "REGULAR"
},
It’s practically 2,000 lines of just this. It got me thinking though that I should start serializing, because a table like this has to take up some memory right?
["Visage Relic"] = {
I = "0",
T = "S",
S = "S",
},
["Vlad's Coffin"] = {
I = "0",
T= "S",
S= "F",
},
["Voodoo Bone Witch"] = {
I = "0",
T = "R"
},
Would converting the whole table to something like above help with memory? Or should I not even bother?
Compared to other game assets, I don’t think it would take much memory at all. Things like image textures and 3D models take up much more memory in your game. You really shouldn’t ever have to worry about how much memory your code will take, even if it’s just a big list of things.