Quote Originally Posted by eugeneloza View Post
  • Memory optimization (thanks to Lazarus forum) will enable almost infinite maps generation
I assume that your maze generator algorithm internally uses some kind of a random number generator right. Have you ever thought about using a pseudorandom algorithm for this?
By using pseudorandom algorithm you could be generating your mazes on demand since such algorithm would always return same results if its initial state is the same. This would require only a fraction of the memory that you need now.
Also using of pseudorandom algorithm you would literally get possibility for true endless mazes. Well depending on your overall maze generation algorithm they might begin to repeat after lots and lots of kilometers but then again no one would probably notice that.