We are loading levels and different game screens with collection proxies in our game. The loaded collection is then also loading child collections through collection factories. When a screen is replaced by another, the collection proxy for that screen is unloaded.
So the general setup is:
- World screen where a world is selected (gui only)
- Level select screen where the level is selected (full game setup - gui, tilemaps, sprites)
- Level (full game setup)
- Level select screen where the level is selected (full game setup - gui, tilemaps, sprites)
Every time a level is finished, the player is back on level select. This works without problems and new levels can be selected and played, but if I go back to the world screen and select a new world, the engine crashes with “Physics world buffer full, world could not be created.”.
Obviously something is still loaded in the engine preventing it from loading new content, but as far as I can see the fault is not at our end. Is there a good way to debug this?