Skip to content

Commit 5cbdc73

Browse files
veilletteclaude
andcommitted
docs: note the webcam/video wall-clock timers in CLAUDE.md
TrackLab's raw setTimeout/setInterval (camera init, FPS sampling, source debounce) track hardware time, not the sim clock — documented-allowed deviations from CONVENTIONS.md §2.9; record them per §7. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 49f1451 commit 5cbdc73

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Follows the shared [OpenPhysics accessibility convention](https://github.com/Ope
3636

3737
- OpenCV WASM requires COOP/COEP headers (configured in Vite dev + production)
3838
- Sample videos in `public/videos/`
39+
- **Wall-clock timers (allowed exception)** — the webcam/video code uses raw `setTimeout`/`setInterval` rather than `stepTimer`: a camera-init timeout in `webcam.ts`, the FPS-sampling interval in `track-lab/view/WebcamPanel.ts`, and a source-switch debounce in `track-lab/view/VideoSourceControlNode.ts`. These track real hardware/wall-clock time (independent of the sim clock), so they are the documented exceptions to the "no `setTimeout`/`setInterval`" rule (CONVENTIONS.md §2.9 / §7).
3940

4041
## Testing
4142

0 commit comments

Comments
 (0)