01-27-2005, 02:59 PM
Excuse the n00b question, but is FB able to do recursion deeper than qb?
am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
Recursion
|
01-27-2005, 02:59 PM
Excuse the n00b question, but is FB able to do recursion deeper than qb?
am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
01-27-2005, 04:16 PM
Sure. By default the stack size is 1 Mb. In QB it was 64 Kb. So you do the math
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio underBASIC, homegrown musicians [img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
01-27-2005, 04:18 PM
Somewhere V1ctor wrote that the default stack size is 1Mb, so probably you can have in FB a lot more recursion than in QB. Just try...
Antoni
01-27-2005, 04:41 PM
i'll write a dumb test later(just a proc that does some wasteful calculations, displays the current depth, till it eventually screws up with an error message)
am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
01-27-2005, 04:56 PM
Just try this:
Code: Declare Sub killStack (recursionDepth%)
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio underBASIC, homegrown musicians [img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
01-27-2005, 11:44 PM
Quote:Just try this:I had 37381. With the compiler switch -t I switched the stack to 10mb and got 373985.
01-28-2005, 12:06 AM
I think it's far enough :o
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio underBASIC, homegrown musicians [img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
01-28-2005, 12:24 AM
Recursive floodfill, anyone?
I'd knock on wood, but my desk is particle board.
01-28-2005, 05:18 AM
Is there any other way to do flood fill? Besides maybe a modified a* algorithm.....
am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
01-28-2005, 05:23 AM
i made an a* once *thinks back to challenge*
yeah i once made a flood fill i think.... i dont remember though edit: i shoul dprobly describe it =P it goes around (up until end, right until end, etc) and in a dead end backtracks untill it can move. |
« Next Oldest | Next Newest »
|