To fix this we had to optimize how we organize many of our textures, which ended up requiring an automated tool to be written to make sure we didn't break anything. This tool really sped up the process, but it was still a very intensive process to figure out the best way to organize the textures in the game.

Once that problem was fixed, we ran into a new optimization issue with some levels on the Switch, where they would run extremely slowly depending on how many blocks were added to the level. The first system we optimized was the graphics renderer; we changed how our simple lighting system worked, which dramatically increased the efficiency of the rendering in many cases. Unfortunately this wasn't enough to make all user generated levels playable on the Switch.

After a discussion with Dan Menard from Double Stallion games, we realized that the slow down might actually be related to the sounds in the game. For some reason, turning the music and sound effects all the way down sped up the game... After some investigation, and many little settings tweaks, we were able to dramatically improve the efficiency of the sound engine on Switch, and large, complex levels are running much better than before.