Runtime limits
The limits below are part of the Plugin API 1.0 operating model. Plugins must remain useful below every ceiling.
| Resource | Limit |
|---|---|
| Lua memory per plugin | 8 MiB |
| Instructions per callback/resume | 100,000 |
| CPU timeout per Lua callback | 4 ms |
| Slow callback warning | 2 ms |
| CPU per plugin callback phase | 6 ms |
| Total plugin CPU per frame | 8 ms |
| Pending semantic events | 256 |
| Subscriptions per plugin | 256 |
| Timers per plugin | 256 |
| Managed tasks per plugin | 256 |
| Draw commands per plugin per frame | 512 |
| Error fuse | 3 errors within 10 seconds |
Budgets are defensive ceilings, not performance targets. A per-frame callback should normally complete far below the warning threshold.
The runtime also bounds strings, menu controls, image dimensions, decoded image memory, storage capacity, list page size, and numeric ranges. APIs reject invalid data instead of silently accepting an unsafe value.