Im creating a game with multiple tilemaps acting as chunks, however, I am getting huge lag spikes with SetTiles(), if a game like Terraria can handle over 5 milliontiles, then why am I lagging creating and loading basic tiles onto multiple tilemaps with 1.5 million tiles without any complicated algorithims? Just loading into tilemaps.
Am I doing something wrong? Its taking over 10 seconds.
I know I could do it asynchronously, but that would mean I need to store the tile data twice, one on the tilemap itself, and then one in some sort of data structure.