I have created a procedurally generated map that essentially resembles infinite space. There is a boundary around the player and any unfilled cells get filled with tiles, such that when the player moves, this boundary space is checked and filled with tiles.
Naturally, this isn't optimal. I would like tiles to be deleted when they are not in view, so there isn't a constant memory overload.
I thought I could do this check at each process call, or I could create a custom Tile scene that is scripted to constantly check if its in the set boundary and, if it is not, delete itself.
It would be great to learn the best practice for this! I have also thought of using a Parallax background - will this give me the illusion of infinite space too?