I am making a game with very large rooms. When I load a new chunk in, the game freezes for a moment, which I assume is because of all the new data it has to load.
I am wondering if there is a way to load the new rooms over multiple frames, only creating some of the elements each frame, to prevent the game from freezing?