Move live automatic ascent planning off the main thread #53

Closed
opened 2026-10-31 04:06:57 +00:00 by pedro · 1 comment
Owner

App.beginAutomaticDeco and safety-stop completion call simulation.decompressionPlan synchronously despite an existing calculation worker.

A supported VPM-B profile (Trimix10/70, 100 m, 60-minute hold, descent20/ascent9 m/min, 3 m stops) took approximately 272 ms to calculate on the review host and returned a complete schedule. Synchronous calls block interaction and rendering.

Location: src/App.tsx automatic-ascent and safety-stop completion handlers.

Acceptance: perform authoritative current-state ascent calculations in a worker, show calculation status, reject stale responses after settings/state/reset changes, handle errors and worker cleanup, and preserve automatic/safety stop behavior. Verify responsiveness and worker loading.

App.beginAutomaticDeco and safety-stop completion call simulation.decompressionPlan synchronously despite an existing calculation worker. A supported VPM-B profile (Trimix10/70, 100 m, 60-minute hold, descent20/ascent9 m/min, 3 m stops) took approximately 272 ms to calculate on the review host and returned a complete schedule. Synchronous calls block interaction and rendering. Location: src/App.tsx automatic-ascent and safety-stop completion handlers. Acceptance: perform authoritative current-state ascent calculations in a worker, show calculation status, reject stale responses after settings/state/reset changes, handle errors and worker cleanup, and preserve automatic/safety stop behavior. Verify responsiveness and worker loading.
Author
Owner

Fixed in d48a22e, 85a353e; integrated in main at 3dd512d and deployed to production (deploy run 734 succeeded; hosted assets verified against the local build). pnpm verify: 176/176 tests, offline retention, typecheck, build and release checks pass.

Fixed in d48a22e, 85a353e; integrated in main at 3dd512d and deployed to production (deploy run 734 succeeded; hosted assets verified against the local build). `pnpm verify`: 176/176 tests, offline retention, typecheck, build and release checks pass.
pedro closed this issue 2026-10-31 19:26:13 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pedro/DiveSim#53
No description provided.