Case study 11 / 25Next.js Front-End
GPU-aware orchestration of live 3D maps in an operations dashboard
Each row's map is the right one by design, 0 faults in 600+ verified frames, and a view switch goes from 6.4 s of blank map to none.
My roleDesigned it and led a team of up to 3: set its standards, mentored it, agreed the roadmap with operations and the client, presented to leadership.
Stack
- React
- Next.js
- TypeScript
- CesiumJS
- WebGL
- ECharts
- Headless Chrome
01 · How it works
- TodaytoChanged in this work
- Data flow
What it does
Every row of the monitoring platform's dashboard embeds a live 3D map with an elevation profile, which operators use to locate alarms and leaks along a line. I designed the frame manager that governs those maps: how many stay live, where each is placed, when it is parked or restored, and how each rendered frame is verified before an operator sees it.
Read more
Correctness came first, then speed, with every failure mode counted on the platform's health page.
6 connections· select a part to trace it
- Dashboard row to Map frame manager: slot position, 2× a second
- Map frame manager to 3D map frame: places, shows or parks it
- 3D map frame to GPU canvas: draws a full frame
- GPU canvas to Identity-mark check: hidden mark read back
- Identity-mark check to Map frame manager: wrong image: cover, rebuild
- Map frame manager to Health page: counts each case per hour
02Results
- R01Lower is better
Dashboard maps rebuilt after an 11-minute absence
Before 75%, after 0%, eliminated. Lower is better.BeforeAfter - R02Lower is better
Active 3D maps per dashboard row
Before 2, after 1, 2× lower. Lower is better.BeforeAfter - R03Lower is better
Blank-map time on a view switch
Before 6.4 s, after 0 s, eliminated. Lower is better.BeforeAfter
What it achieved
- What operators see in each row: at times another system's map, on integrated graphics → its own map by design, one live WebGL context per row, 0 faults in 600+ verified frames
- Returning to the dashboard: 75% of maps rebuilt → 0%, parked maps restored in place
- View switch: 6.4 s of blank map → no blank frame
Read more
- Terrain service outage: no map after 30 s → local terrain in about 4 s
- Dark-theme legibility of the profile scale and legend: 2.6:1 contrast → 10.9:1
- Reading the map: three looks for one pipe → one tube at every distance, with 6 → 0 changes of look while zooming in; a station's card opens from the map too, 2 different cards → 1, on 0 → 88 stations
03Decisions and trade-offs
- Constraint
Up to three live WebGL contexts per row shared GPU memory and blended their output.
DecisionMake one live context per row an invariant.
What it costNo preloading: first switches are slower, a price for a map that is always the right one.
- Constraint
No code path was wrong, so no code fix could be trusted.
DecisionVerify every rendered frame by pixel readback before an operator sees it.
What it costEach frame is shown only after its check passes.
- Constraint
Tile pre-warming looked like a speed-up.
DecisionMeasure time to first byte first: it was already low.
What it costPre-warming was dropped.
The challenge
Operators reported a dashboard row showing another system's map. Data, identity and placement were all correct; the fault sat below the application. On machines with integrated graphics, a row could hold up to three live WebGL contexts competing for shared GPU memory, and their output blended in one canvas. No code path was wrong, so no code-path fix could be trusted: the architecture had to make the fault impossible by design and detectable if it ever recurs.
Read more
The same design had to absorb the platform's everyday failure modes: a blank map for 6.4 s on every view switch, most maps rebuilt from scratch after a short absence, and no map at all when the online terrain service stopped responding.
What I learned
Measure what reaches the screen, not what the code reports: the frame manager once logged 98 ms for a switch that took 15.5 s to appear. Once GPU memory proved to be the governing constraint, the fix had to be architectural, impossible by design and detectable if it ever recurs, and every failure mode is now counted on the platform's health page.
Stack
- React
- Next.js
- TypeScript
- CesiumJS
- WebGL
- ECharts
- Headless Chrome
Skills
- 3D rendering on the web
- GPU resource management
- Reliability engineering
- Root-cause analysis
- Accessible data visualization

