Currently, I am working on a game that is similar to terraria, I use an array and a tilemap to generate random terrain. But as soon as I preview the project It just shows a black screen for roughly a minute. I am inclined to believe that this is do to high amounts of data usage and performance, Yet as soon as The layout begins after the black screen, it runs just fine. I've also tried making the terrain that it is generating really small, but that didn't help at all. It might have to do with the code, and I honestly don't know what is wrong. Here is the .capx: https://www.dropbox.com/s/uyssrq91hds1m ... .capx?dl=0
Constrols: WASD, Left click to destroy blocks, Right click to place them, 1 & 2 to switch between dirt and stone.