Limits
Time budgets and size limits every script runs under.
| Limit | Value |
|---|---|
| paint budget per tick | 2 ms |
| createmove budget per command | 1 ms |
| frame_stage budget per frame, all stages | 2 ms |
| budget of every other event | 1 ms |
| budget of the script's body when it loads | 50 ms |
| all scripts' paint, frame_stage and game events per frame | 3 ms |
| budget overruns in a row before the script is unloaded | 3 |
| memory per script | 64 MB |
| script file size | 1024 KB |
| draw calls per tick | 8000 |
| text bytes drawn per tick | 65536 |
| points per polygon | 512 |
| images per script | 32 |
| menu controls per script | 128 |
| windows per script | 8 |
| sidebar title length | 32 bytes |
| storage per script | 256 KB |
| console lines kept per script | 200 |
| handlers per event | 64 |
Nyx Lua API v1 · release commit-4b659d9c3810 · d0f772c99281