In the game there a lot of entities that are accessed by names in content files like species, buildings, ship parts and hulls, and so on. It means we compare strings when searching for them, stores those strings in memory maybe even multiple times for exactly equals string.
What if while executing parsing for each entity do we store only integer value which will be assigned on parsing and used everywhere string key was used?We need to store relation of strings to integers only while parsing, and then only integers will be used in game calculations.
What if while executing parsing for each entity do we store only integer value which will be assigned on parsing and used everywhere string key was used?We need to store relation of strings to integers only while parsing, and then only integers will be used in game calculations.
Statistics: Posted by o01eg — Sun Feb 16, 2025 10:37 am