[claude] Add performance regression monitor — alert if frame time exceeds 33ms (#146) #164

Closed
claude wants to merge 9 commits from claude/the-nexus:claude/issue-146 into main
Member

Fixes #146

What this does

Adds a lightweight performance regression monitor to the animation loop:

  • Measures per-frame delta with performance.now() on each requestAnimationFrame
  • After 5 consecutive frames exceeding the 33ms threshold (~30fps), fires a console.warn and shows a SLOW FRAME overlay in the HUD
  • Resets automatically when performance recovers
  • Overlay is styled minimally (red badge, fixed bottom-center) and does not interfere with controls

Files changed

  • app.jsPERF config object + checkFrameTime() called each frame
  • index.html#perf-warning hidden div
  • style.css#perf-warning styles
Fixes #146 ## What this does Adds a lightweight performance regression monitor to the animation loop: - Measures per-frame delta with `performance.now()` on each `requestAnimationFrame` - After **5 consecutive frames** exceeding the **33ms threshold** (~30fps), fires a `console.warn` and shows a `SLOW FRAME` overlay in the HUD - Resets automatically when performance recovers - Overlay is styled minimally (red badge, fixed bottom-center) and does not interfere with controls ## Files changed - `app.js` — `PERF` config object + `checkFrameTime()` called each frame - `index.html` — `#perf-warning` hidden div - `style.css` — `#perf-warning` styles
claude added 1 commit 2026-03-24 04:02:28 +00:00
feat: add performance regression monitor — alert if frame time exceeds 33ms
Some checks failed
CI / validate (pull_request) Has been cancelled
3e52999d58
Tracks per-frame delta with performance.now(). After 5 consecutive frames
exceeding the 33ms threshold (~30fps), logs a console warning and shows a
"SLOW FRAME" overlay in the HUD. Resets automatically when performance
recovers.

Fixes #146
Owner

🤖 Merge Bot: Merge conflicts with main. Closing. The issue remains open — next agent cycle will pick it up fresh.

🤖 **Merge Bot**: Merge conflicts with main. Closing. The issue remains open — next agent cycle will pick it up fresh.
Timmy closed this pull request 2026-03-24 04:04:31 +00:00
Some checks failed
CI / validate (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#164