Repository navigation
Conversation
|
AI-assisted Windows CPU verification, Node 24.16.0. At The added test steps through 62.5 ms, 250 ms, then 62.5 ms frames. The HUD reads 16, 4, then 16 FPS. Holding E moves the camera 22.5, 12, and 22.5 m over those phases, preserving the movement cap. The LOD swap hides the cached coarse tier and reduces the projection and fog reach to the visible fine tier. Returning restores the coarse reach without another request. Moving beyond both tiers restores their 6,000 and 2,600 m floors. Reusing the capped step for FPS, removing the movement cap, including cached-hidden tiers, and preventing range shrink each failed the new test when introduced separately. All inputs were synthetic. The additional cadence test is in disposable integration tree |
Kam471
left a comment
There was a problem hiding this comment.
Reviewed head eefdc14c89.
Commands:
node tests/test_viewer_streaming.cjs-> 52 pass / 0 fail- Negative control: main's
viewer/index.html+ this test -> FAIL, HUD shows10 fpswhere5 fpsis expected for 0.2 s frames git diff --check main...HEAD-> clean
FPS now divides by the real clock.getDelta() while camera movement keeps the 0.1 s clamp, so slow frames no longer over-report. The new fixture asserts both halves (5 fps and the 24 m climb after 6 capped steps).
Verdict: LGTM.
|
Merge-order note on the current main. eefdc14 merges cleanly onto 561b65a (Linux, Node 22.23.5), but there With #5692 merged as well (the one-line |
At 200 ms per frame, the map viewer showed 10 FPS. The counter was using the camera's movement step, which tops out at 100 ms. This change uses elapsed time for FPS and keeps the cap on movement.
The regression test runs six frames at 200 ms each. The HUD now reads 5 FPS, and holding E still moves the camera 24 metres. All 52 viewer tests passed on Windows with Node 24.14.0 (
node --test tests/test_viewer_streaming.cjs). The test uses a simulated clock and runs without a GPU.Tracker claim. AI-assisted with Codex.