EmptyEpsilon
EmptyEpsilon copied to clipboard
feature request - warn/error on large lua instruction counts
It would be nice if lua infinite loops didnt hang the game.
In serious proton there is already logic to stop lua functions past a certian instruction count.
It would be very useful to get a traceback on an error.
I have no clue what a sensible default for instruction count would be (or if it should be settable in script).
I've made it an options.ini setting, so you can set it during debugging. Maybe once we know some sensible values we can also set a different default.
How would one use this? I'm guessing something like adding the following line to options.ini:
script_cycle_limit=20
20 is really low, few 1000 is more what you most likely want
So, more like a line like this:
script_cycle_limit=5000
Can this be done as a command line parameter like other options?
Yes