MazeGenerator too slow

Blitz3D Forums/Blitz3D Beginners Area/MazeGenerator too slow

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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]