Files
meshcore-analyzer/public
OpenClaw Bot 498a2dcbb5 perf(live): hoist scratch points + drain onComplete on destroy (#1514 S2+S3)
S2 — renderAnimations() previously allocated two object literals per anim
per frame. At 50 concurrent anims × 60fps that is ~6000 garbage objects
per second. Hoist to two module-scoped scratch points reused each frame.

S3 — destroy() previously cleared activeAnimations without firing pending
onComplete callbacks. Audio onHop hooks depend on those firing; navigating
away mid-flight would silently swallow them. Iterate the queue and call
onComplete (with try/catch so a misbehaving handler can't block teardown)
BEFORE truncating the array.

Refs #1514
2026-05-31 22:45:02 +00:00
..