Skip to content

feat: demo-ready replay overlay - #35

Merged
pizzasaurusrex merged 1 commit into
mainfrom
feat/hud-edge-warning
Nov 18, 2026
Merged

pizzasaurusrex merged 1 commit into
mainfrom
feat/hud-edge-warning

Conversation

@pizzasaurusrex

Copy link
Copy Markdown
Owner

Summary

Makes poolguard-replay --render output usable as a demo video.

  • Scales with frame width. Text, lines, the panel and the submersion meter are sized for 960 px and multiplied up (2x at 1080p). At phone size, the old 1080p overlay was unreadable. hud_scale() is shared by the HUD and the per-track boxes and labels.
  • Raised events stay on screen. A new RAISED row lists every event raised so far, with its time, e.g. RAISED EDGE 0.0s | ENTRY 1.2s | SUBMERSION 37.0s. Repeats of one event collapse to the first plus a count. The status line only shows the current frame, so the armed entry on drowning-test.mp4 (raised mid-jump at 1.2 s) used to flash for a fraction of a second.
  • Edge status. EDGE — N at the pool edge while armed (orange) for the PERSON_AT_EDGE event from feat: edge margin for entry and submersion, from the first armed footage #34, ranked below the entry alarm and the running submersion clock.

Decision log entry added.

Test plan

  • ruff check, ruff format --check
  • pytest (all extras): scaling, alarm row and edge status tests written first and seen failing
  • Rendered drowning-test.mp4 armed and checked frames at 640x360: edge at 0.3 s, RAISED EDGE 0.0s | ENTRY 1.2s kept while he is under, SUBMERSION 37.0s with a full red meter at 37.5 s. Events unchanged from feat: edge margin for entry and submersion, from the first armed footage #34.

@pizzasaurusrex
pizzasaurusrex merged commit 585eadc into main Nov 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant