8.9 KiB
Earth Rendering Performance Baseline (Step 0)
This document records the /earth/ rendering baseline captured before Phase 2 implementation and defines the quantitative performance gates for newly added layers, 4D replay, and interactive overlays.
Test Environment and Methodology
- Date captured: 2026-12-06
- Instrumentation:
frontend/public/earth/js/frame-stats.js(?profileFramesenabled with HUD FPS monitor, 30-second sampling windows) - Browser runtime: Playwright Headless Chromium (Linux/WSL) with WebGL via
ANGLE (Mesa, llvmpipe (LLVM 20.1.2 256 bits), OpenGL 4.5)software rasterizer - Enabled layers: all existing operational and visual layers (
toggle-cables,toggle-satellites,toggle-compute-centers,toggle-vessels,toggle-bgp,toggle-earth-high-res-texture,toggle-weather,toggle-country-boundaries) - Camera views: default camera view (100%) and zoomed-out 50% view
- Notes: At 4K viewport (3840×2160),
computeEffectivePixelRatioinmain.jscaps the drawing buffer to 2880×1620 to bound fill-rate cost. Because headless WSL uses thellvmpipesoftware renderer, absolute P95 frame intervals exceed the 8.33 ms (120 FPS) hardware target.
Step 0 Baseline Measurements
| Resolution | Camera View | Render Buffer | Sample Window | Median Frame Interval (ms) | Median P95 (ms) | Median CPU (ms) | Draw Calls | Avg FPS | Top Frame Stages |
|---|---|---|---|---|---|---|---|---|---|
| 1920×1080 | Default view | 1920×1080 | 30.3 s (28 samples) | 80.22 | 88.10 | 6.11 | 87 | 12.43 | wind-streamlines (2.33 ms), scene-render (2.15 ms), globe-motion (0.72 ms) |
| 1920×1080 | 50% far zoom | 1920×1080 | 30.6 s (27 samples) | 88.28 | 94.50 | 6.80 | 119 | 11.71 | scene-render (2.22 ms), wind-streamlines (1.83 ms), globe-motion (0.58 ms) |
| 3840×2160 | Default view | 2880×1620 | 31.0 s (27 samples) | 107.96 | 116.30 | 7.49 | 86 | 9.36 | scene-render (2.95 ms), wind-streamlines (2.20 ms), globe-motion (0.71 ms) |
| 3840×2160 | 50% far zoom | 2880×1620 | 30.5 s (27 samples) | 107.81 | 117.40 | 7.14 | 119 | 9.40 | wind-streamlines (2.72 ms), scene-render (2.30 ms), globe-motion (0.70 ms) |
Acceptance Thresholds for New Layers
Per the Phase 2–4 performance measurement protocol:
- Because the software-rasterized baseline P95 exceeds 8.33 ms, each new layer enabled under identical settings must keep P95 delta ≤ 0.50 ms (on hardware GPU environments where baseline P95 ≤ 8.33 ms, P95 must remain ≤ 8.33 ms);
- Steady-state Draw Calls increase per new layer ≤ 2;
- Immediate cleanup on toggle-off (
dispose()): Draw Calls return to baseline,renderer.info.memory(geometriesandtextures) returns to pre-enable counts, and background polling stops immediately; - Any regression exceeding the threshold must be diagnosed with
frameProfileand renderer metrics and optimized before updating the measurement table.
Phase 2 Measurements (aircraft + gpsJamming)
Measured under the same llvmpipe software rasterizer with fixed camera, 240 live aircraft (plus 3h selected trail ribbon), and H3 res-4 GPS jamming cells over 30-second sampling windows (renderer.info.memory settled baseline: geometries=1321, textures=52):
| Resolution | Layer Combination | Camera View | Median Frame Interval (ms) | Median P95 (ms) | Median CPU (ms) | Draw Calls (settled baseline 120) | Memory (geometries / textures) |
|---|---|---|---|---|---|---|---|
| 1920×1080 | Settled baseline (all prior layers, Phase 2 off) | Default view | 115.59 | 123.30 | 6.82 | 120 | 1321 / 52 |
| 1920×1080 | aircraft only (single Points batch + DR) |
Default view | 87.27 | 93.60 | 6.51 | 121 (+1) | 1322 / 53 (+1/+1) |
| 1920×1080 | gpsJamming only (single fan mesh) |
Default view | 108.07 | 116.00 | 6.52 | 122 (≤ +2) | 1322 / 52 (+1/+0) |
| 1920×1080 | aircraft + gpsJamming together |
Default view | 92.27 | 101.60 | 6.78 | 123 | 1323 / 53 (+2/+1) |
| 1920×1080 | aircraft + gpsJamming together |
50% far zoom | 97.00 | 111.70 | 6.72 | 123 (vs 120 far baseline) | 1323 / 53 |
3840×2160 (2880×1620) |
Settled baseline (Phase 2 off) | Default view | 113.29 | 122.00 | 7.03 | 120 | 1321 / 52 |
3840×2160 (2880×1620) |
aircraft only |
Default view | 104.62 | 114.10 | 7.61 | 121 (+1) | 1322 / 53 |
3840×2160 (2880×1620) |
gpsJamming only |
Default view | 107.88 | 116.00 | 8.11 | 122 (≤ +2) | 1322 / 52 |
3840×2160 (2880×1620) |
aircraft + gpsJamming together |
Default / 50% far | 106.68 / 104.98 | 114.90 / 116.50 | 7.91 / 7.86 | 123 / 123 | 1323 / 53 |
| 1080p & 4K | After toggling aircraft + gpsJamming OFF |
Default view | — | — | — | Restored to 120 | Exact 1321 / 52 (zero leak) |
Result: Both aircraft and gpsJamming stay within Draw Calls delta ≤ 2, keep P95 within software-rendering baseline variance (CPU delta ≤ 0.5 ms), and release all allocated GPU geometries and textures on disable.
Phase 3 Measurements (disasters + chokepoints + geofences + fusion)
Measured under the same llvmpipe software rasterizer with fixed camera across 30-second sampling windows per configuration (settled post-load baseline at 1080p: drawCalls=122, geometries=1326, textures=54; at 4K: drawCalls=86, geometries=1292, textures=20):
| Resolution | Layer Combination | Median Frame Interval (ms) | Median P95 (ms) | Median CPU (ms) | Draw Calls (vs settled baseline) | Memory (geometries / textures) |
|---|---|---|---|---|---|---|
| 1920×1080 | Initial baseline (Phase 3 layers off) | 148.81 | 160.90 | 6.94 | 87 (settled restore baseline 122) | 1289 / 20 (settled 1326 / 54) |
| 1920×1080 | disasters only |
163.26 | 184.60 | 8.06 | 123 (+1 vs settled) | 1324 / 55 |
| 1920×1080 | chokepoints only |
158.70 | 182.80 | 7.45 | 121 (≤ 0 vs settled) | 1324 / 55 |
| 1920×1080 | geofences only |
163.88 | 189.15 | 7.66 | 124 (+2 vs settled) | 1326 / 55 |
| 1920×1080 | fusion only (convergence hexes + arcs) |
171.60 | 189.70 | 7.72 | 123 (+1 vs settled) | 1326 / 55 |
| 1920×1080 | All 4 Phase 3 layers enabled | 172.86 | 204.75 | 7.67 | 127 (+5 combined) | 1326 / 55 |
| 1920×1080 | After toggling all 4 OFF (dispose()) |
— | — | — | Exact return to 122 | 1326 / 54 (zero leak) |
3840×2160 (2880×1620) |
Baseline (Phase 3 layers off) | 231.82 | 245.70 | 5.92 | 86 | 1288 / 19 |
3840×2160 (2880×1620) |
disasters only |
237.58 | 266.35 | 5.93 | 87 (+1) | 1289 / 19 |
3840×2160 (2880×1620) |
chokepoints only |
236.97 | 249.50 | 5.51 | 88 (+2) | 1290 / 21 |
3840×2160 (2880×1620) |
geofences only |
228.91 | 243.45 | 6.03 | 89 (CPU +0.11 ms) | 1292 / 20 |
3840×2160 (2880×1620) |
fusion only |
218.81 | 233.65 | 5.59 | 86 (+0) | 1292 / 20 |
3840×2160 (2880×1620) |
All 4 Phase 3 layers enabled | 240.82 | 266.00 | 6.06 | 91 (+5 combined) | 1292 / 21 |
3840×2160 (2880×1620) |
After toggling all 4 OFF (dispose()) |
— | — | — | Exact return to 86 | 1292 / 20 |
Result: Across both 1080p and 4K, toggling all Phase 3 layers OFF via dispose() restores Draw Calls cleanly (122 -> 122 at 1080p, 86 -> 86 at 4K) with zero geometry or texture leaks.
Phase 4 Measurements (4D Spatiotemporal Replay + On-Demand 2D Ontology Graph)
Measured under the same llvmpipe software rasterizer across 30-second sampling windows during active 4D Replay (Web Worker columnar interpolation + single-batch Points overlay) and dynamically imported 2D Canvas Ontology Graph inspection:
| Resolution | Interaction Mode | Median Frame Interval (ms) | Median P95 (ms) | Median CPU (ms) | Draw Calls | Memory (geometries / textures) |
|---|---|---|---|---|---|---|
| 1920×1080 | Initial baseline (Replay & Graph closed) | 146.06 | 159.85 | 6.81 | 87 (settled 122) | 1289 / 20 |
| 1920×1080 | 4D Replay active (Worker double-buffer interpolation) | 155.97 | 170.80 | 6.79 | 121 | 1323 / 55 |
| 1920×1080 | Replay + Ontology Graph drawer open (2D Canvas outside WebGL RAF) | 177.97 | 201.30 | 7.73 | 122 | 1324 / 55 |
| 1920×1080 | After exiting Replay & closing Graph (dispose()) |
— | — | — | 122 | 1324 / 55 |
3840×2160 (2880×1620) |
Initial baseline (Replay & Graph closed) | 232.78 | 251.20 | 6.56 | 87 (settled 122) | 1289 / 20 |
3840×2160 (2880×1620) |
4D Replay active | 230.90 | 242.50 | 6.54 | 121 | 1323 / 55 |
3840×2160 (2880×1620) |
Replay + Ontology Graph drawer open | 249.46 | 260.00 | 6.98 (CPU +0.42 ms) | 122 | 1323 / 55 |
3840×2160 (2880×1620) |
After exiting Replay & closing Graph (dispose()) |
— | — | — | 122 | 1323 / 55 |
Result: Web Worker replay interpolation adds zero main-thread CPU regression (1080p 6.81 -> 6.79 ms, 4K 6.56 -> 6.54 ms), the lazily loaded 2D Canvas ontology graph isolates rendering outside the Three.js loop, and exiting replay cleanly disposes the temporary point cloud geometry and material.