Hello. I’m implementing a map for an RTS game so I expect map size to go big, like 10k x 10k. I thought I’d use BlobArray to contain all grid nodes of the map (100 million nodes in this case). Nodes contain coordinates, walkability, terrain type, movement cost etc…
I also want to store Map as BlobAssetReference in a component of a singleton entity so all other systems can reach this easily for pathfinding etc…
But I can’t allocate this much since I’m getting “Length * sizeof(T) cannot exceed 2147483647 bytes” exception. So I have a few questions:
1- Is 100 million nodes too many? If so, how should I change my approach here?
2- Is representing big map data as singleton entity good idea?
3- How do I handle rebuilding the Map at runtime in this case? For example if player puts a building and a couple of nodes need to change their walkability, I have to create the whole Map BlobAssetReference from scratch, right?
4- Any other suggestions?