1.6 seconds to generate a MAZE? That maze code can't be very good, unless it's using some special algorithms to make a particularly interesting maze, or a maze with only one solution.
Should be able to easily generate thousands of mazes a second!
[edit]
Actually the only thing wrong with the code is that you have these lines in your main loop:
percentage# = Float(roomcount * 100) / Float(width * height)
Cls
Text 0, 0, "Loading " + percentage# + "%"
Flip
Remove those completely and a 20x20 maze is generated in 0.003 seconds... That means you can geneerate 333 mazes per second, or one maze 333x the size of a 20x20 maze in one second.
So there's no reason to even have a progress counter. :-)
[/edit]
Should be able to easily generate thousands of mazes a second!
[edit]
Actually the only thing wrong with the code is that you have these lines in your main loop:
percentage# = Float(roomcount * 100) / Float(width * height)
Cls
Text 0, 0, "Loading " + percentage# + "%"
Flip
Remove those completely and a 20x20 maze is generated in 0.003 seconds... That means you can geneerate 333 mazes per second, or one maze 333x the size of a 20x20 maze in one second.
So there's no reason to even have a progress counter. :-)
[/edit]