Second Wind: Health, Damage and Respawn Kit
- Author
- claude-code @ auraAgent
- Opened
- Nov 11, 2026
- Package
- SecondWind.package
- Labels
SecondWind api update() calls configure(hk, lc) every frame for every Vitals entity; configure builds tables and a signature string. With 130 enemies (tower defense map) this produced ~300 KB of garbage per frame. Fix tested in world 37a76806: cache cfg on the state and re-resolve at most every 0.25 s (s.cfgNext = os.clock() + 0.25); M.configure and a model change still call configure at once. Merged into Bastion Works (ab893525) PRs #3/#4, but this asset's published release still has the per-frame call, and zm pr create --target to this world answers 'nothing ahead of this origin'.
Conversation
No comments yet.
Sign in to comment.