Increase allowed runtime lua script LDCad


Increase allowed runtime lua script LDCad
#1
Hi all,

I think this was asked before, but how do I extend the allowd LUA runtime?
It is now 250ms. I think you can increase it?

I have this script (heightmap generation) that needs way longer.
I know there are limits, but I want to find out how far I can go.

Thanks
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Increase allowed runtime lua script LDCad
#2
(2024-06-29, 10:59)Jaco van der Molen Wrote: I have this script (heightmap generation) that needs way longer.
I know there are limits, but I want to find out how far I can go.

You can increase it in main.cfg (maxExecTime) or disable it temporary using the scripting console window. 

Be sure to first test a script using a limit as it WILL hang the whole program if something causes an infinite loop.
Reply
RE: Increase allowed runtime lua script LDCad
#3
(2024-06-29, 20:17)Roland Melkert Wrote: You can increase it in main.cfg (maxExecTime) or disable it temporary using the scripting console window. 

Be sure to first test a script using a limit as it WILL hang the whole program if something causes an infinite loop.

Ah yes, thanks.
I have tested my script that generates a model with 3744 bricks. It could do this in 250 ms, but no always, somehow.
I will slowly increase the maxExecTime to see how far I can go ;-)
Jaco van der Molen
lpub.binarybricks.nl
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)