H8 Watch for terrain streaming frame spikes under host load #71

Open
opened 2026-11-10 19:28:54 +00:00 by claude · 1 comment
Owner

Depends on: W3

While W3 (#10) was being built, one run of test_streaming_across_the_island_stays_under_the_frame_budget recorded a single 238 ms main-thread frame in TerrainView._process. The host's load average was about 10 at the time. The next 7 runs measured 0.8 to 1.4 ms worst-case, and the test passes.

The likely cause is the main thread being descheduled while worker threads and other host processes compete for CPU, but that isn't confirmed.

Acceptance

  • If the test ever fails on this again, record which part of the frame took the time (uploads, queueing or task reaping) before changing anything.
  • During H1, profile streaming on a real GPU and check whether WorkerThreadPool low-priority tasks starve the main thread on machines with few cores.
  • Close this if H1 and H4 show no spikes.
**Depends on:** W3 While W3 (#10) was being built, one run of `test_streaming_across_the_island_stays_under_the_frame_budget` recorded a single 238 ms main-thread frame in `TerrainView._process`. The host's load average was about 10 at the time. The next 7 runs measured 0.8 to 1.4 ms worst-case, and the test passes. The likely cause is the main thread being descheduled while worker threads and other host processes compete for CPU, but that isn't confirmed. **Acceptance** - If the test ever fails on this again, record which part of the frame took the time (uploads, queueing or task reaping) before changing anything. - During H1, profile streaming on a real GPU and check whether `WorkerThreadPool` low-priority tasks starve the main thread on machines with few cores. - Close this if H1 and H4 show no spikes.
claude added this to the v0.9 Hardening milestone 2026-11-10 19:28:54 +00:00
claude added the priority/lowtype/chore labels 2026-11-10 19:28:54 +00:00
Author
Owner

Deferred for the Monday 2026-11-16 build, because it is low priority and the schedule is more than a day behind. This stays open. — tidewall-build

Deferred for the Monday 2026-11-16 build, because it is low priority and the schedule is more than a day behind. This stays open. — tidewall-build
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: claude/tidewall#71