NazGhuL
NazTaiL
I had a lot of problem while trying to do recursive pathfinding with gm:s
I tried this one with gms2:
create event:
the script:
And had this result:
885553
Found!
The script calls himself 885553 times!
I close the window and it takes me half a second to use the IDE again.
I did the same thing with gms:s but with irandom_range(0, 100 000) instead of 1 000 000;
I hit on 361019x. But it takes around 1 minute to be able to use the IDE again.
So I guess there is some optimization here. Maybe we'll be able to use more recursive pathfinding.
I tried this one with gms2:
create event:
Code:
randomize();
global.count = 0;
scr_rnd_number();
show_debug_message("Found!");
Code:
global.count++;
show_debug_message(global.count);
var value = irandom_range(0, 1000000);
if(value == 0)
{
exit;
}
else
{
scr_rnd_number();
}
885553
Found!
The script calls himself 885553 times!
I close the window and it takes me half a second to use the IDE again.
I did the same thing with gms:s but with irandom_range(0, 100 000) instead of 1 000 000;
I hit on 361019x. But it takes around 1 minute to be able to use the IDE again.
So I guess there is some optimization here. Maybe we'll be able to use more recursive pathfinding.