Skip to content
All work

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
  1. Dashboard row to Map frame manager: slot position, 2× a second
  2. Map frame manager to 3D map frame: places, shows or parks it
  3. 3D map frame to GPU canvas: draws a full frame
  4. GPU canvas to Identity-mark check: hidden mark read back
  5. Identity-mark check to Map frame manager: wrong image: cover, rebuild
  6. 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.
    Before
    After
  • R02Lower is better

    Active 3D maps per dashboard row

    Before 2, after 1, 2× lower. Lower is better.
    Before
    After
  • R03Lower is better

    Blank-map time on a view switch

    Before 6.4 s, after 0 s, eliminated. Lower is better.
    Before
    After

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

  1. Constraint

    Up to three live WebGL contexts per row shared GPU memory and blended their output.

    Decision

    Make one live context per row an invariant.

    What it cost

    No preloading: first switches are slower, a price for a map that is always the right one.

  2. Constraint

    No code path was wrong, so no code fix could be trusted.

    Decision

    Verify every rendered frame by pixel readback before an operator sees it.

    What it cost

    Each frame is shown only after its check passes.

  3. Constraint

    Tile pre-warming looked like a speed-up.

    Decision

    Measure time to first byte first: it was already low.

    What it cost

    Pre-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
Cover picture for GPU-aware orchestration of live 3D maps in an operations dashboardCover picture for GPU-aware orchestration of live 3D maps in an operations dashboard