LDraw.org Discussion Forums

Full Version: Increase allowed runtime lua script LDCad
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
(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.
(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 ;-)