Lua Settings

lua debug

Type

Range

Default

Location

boolean true, false false user settings.cfg

Enables debug tracebacks for Lua actions. Causes significant performance overhead.

lua num threads

Type

Range

Default

Location

int 0, 1 1 user settings.cfg

Maximum number of threads used for Lua scripts. 0 = main thread only, 1 = separate thread. Values >1 not supported.

lua profiler

Type

Range

Default

Location

boolean true, false false user settings.cfg

Enables Lua profiler.

small alloc max size

Type

Range

Default

Location

int ≥ 0 1024 user settings.cfg

Max size in bytes for allocations without ownership tracking. Used only if lua profiler is true. Lower values increase memory tracking detail at cost of overhead.

memory limit

Type

Range

Default

Location

int > 0 2147483648 user settings.cfg

Memory limit for Lua runtime (if lua profiler is true). If exceeded, only small allocations are allowed.

log memory usage

Type

Range

Default

Location

boolean true, false false user settings.cfg

Prints debug info about memory usage (if lua profiler is true).

instruction limit per call

Type

Range

Default

Location

int > 1000 100000000 user settings.cfg

Max number of Lua instructions per function call (if lua profiler is true). Functions exceeding this limit will be terminated.

gc steps per frame

Type

Range

Default

Location

int ≥ 0 100 user settings.cfg

Lua garbage collector steps per frame. Higher values allow more memory to be freed per frame.