I'm currently developing a game based around the internet creepy pasta "The Backrooms" and in order for it to function as intended, I need an infinitely generating world made of random combinations of room pieces. I have managed to achieve this, and it is all working well. However, I have encountered a dead end in the fact that because the loaded area is so large, it has a massive strain on the CPU and effectively crashes. One idea that came to mind was implementing a chunk loading/unloading system, but any help for creating that online has either been for 2d games, or for 3d voxel based games, neither of which really apply to me. Does anyone have any ideas on how i could achieve this? Any help would be greatly appreciated!