Search Unity

3d chunk based loading for a dungeon like procedurally generated game

Discussion in 'World Building' started by matt2097b, Jun 6, 2021.

  1. matt2097b

    matt2097b

    Joined:
    Jan 19, 2021
    Posts:
    7
    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!