1
0
Fork 0
polaris-task-force/src
Z8MB1E 4bfa34a775 feat(npc-dialogue): preload, replay and a progress hairline for voice clips
Clips were fetched the moment their line started, so every spoken line paid for
the download at the worst possible moment. The next node's clip is now fetched
into an object-URL cache while the current line is still being read: the URL
comes from the node's own voice.filename, so no server round trip is needed.

Each voiced line has a Replay control beside the speaker label, and a cyan
hairline fills under the line from audio timeupdate while it plays, keyed by log
entry id so only the line actually playing shows progress.

Measured with two 2s clips: the second file was requested 2.8s before its line
appeared, hairline widths climbed 0 to 123px, two Replay buttons rendered, and a
replay restarted the clip (currentTime 2.0 to 0.56, unpaused) and brought the
hairline back.

The cache is bounded at 8 object URLs, revoked on eviction and on unmount.
2026-11-24 20:22:06 -05:00
..
app feat(npc-dialogue): natural typing rhythm, a beat between lines, a typing sound 2026-11-24 19:20:11 -05:00
arena feat(minigames): superuser developer console dock across all ten games 2026-10-20 12:48:27 -04:00
assets/images feat: application staging deployment (ensure better commits after this) 2025-12-15 01:14:30 -05:00
bot feat(intelligence): add attendance-gated feature unlocks to mission pages 2026-11-21 02:30:48 -05:00
collections feat(npc-dialogue): natural typing rhythm, a beat between lines, a typing sound 2026-11-24 19:20:11 -05:00
components feat(npc-dialogue): preload, replay and a progress hairline for voice clips 2026-11-24 20:22:06 -05:00
hooks feat(minigames): add Ordnance Disposal (bomperator) multiplayer drill 2026-10-16 00:32:52 -04:00
lib feat(npc-dialogue): preload, replay and a progress hairline for voice clips 2026-11-24 20:22:06 -05:00
migrations feat(npc-dialogue): natural typing rhythm, a beat between lines, a typing sound 2026-11-24 19:20:11 -05:00
permissions feat(intelligence): add the faction relation ledger collection and score math 2026-11-18 14:13:20 -05:00
scripts feat(dev): add seed-attendance bin for random mission attendance 2026-11-02 10:01:32 -05:00
tools feat(intelligence): add undiscovered faction state with read masking 2026-11-18 09:19:57 -05:00
utils perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
payload-generated-schema.ts feat(lockers): seed and unlimited-stock sync for limited arsenal 2026-11-20 19:52:15 -05:00
payload-types.ts feat(npc-dialogue): natural typing rhythm, a beat between lines, a typing sound 2026-11-24 19:20:11 -05:00
payload.config.ts fix(ai): bound the structured path too, and stop the dialog overpromising 2026-11-24 15:00:30 -05:00