I've built a function in Tier 1 that solves Sokoban puzzles. It does seem to work, but it's quite slow. The puzzle on the Wikipedia page describing Sokoban takes about four seconds on my computer. I've trimmed it a bit, I will trim it further so it gets faster, but because it is a bit slow I thought I should present some type of loading thingy to show that it's actually doing something and haven't hanged.
But when I do that, it gets really slow. I realize that Tier 1 has no threading, but what can I do to make it faster? What I do now is in my loop for the BFS-algorithm is to do a print of the current solution and then call Render and then Swap. And it gets really slow. I tried to disable the sync rate, and it stil gets about twice as slow as without Render and Swap. Is there anything else I can do?