Increase allowed runtime lua script LDCad - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html) +--- Thread: Increase allowed runtime lua script LDCad (/thread-28319.html) |
Increase allowed runtime lua script LDCad - Jaco van der Molen - 2024-06-29 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 RE: Increase allowed runtime lua script LDCad - Roland Melkert - 2024-06-29 (2024-06-29, 10:59)Jaco van der Molen Wrote: I have this script (heightmap generation) that needs way longer. 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. RE: Increase allowed runtime lua script LDCad - Jaco van der Molen - 2024-06-30 (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. 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 ;-) |