Technical reference

All model documents · source: docs/models/performance.md

Performance: the UI-thread budget

Spec §16: no UI-thread work over 100 ms. Measured with scripts/measure_ui.py (QT_QPA_PLATFORM=offscreen python scripts/measure_ui.py --json out/ui-timings.json) on 2026-11-06: Linux x86_64, AMD Ryzen 9 9900X, Python 3.14.4, PyQt6 6.12.0, NumPy 2.5.4, MuJoCo 3.17.0. The SO-100 sample has 60 682 visual triangles, the UR5e + 2F-85 sample 193 113. Figures are the median of five runs with the largest in brackets; a single figure is one run.

How it is measured. Each handler a user triggers is timed on the UI thread directly. An event-loop watchdog (a 5 ms timer) also records the longest stall while the events that follow each step are processed, so a slow handler the list does not name still shows. Studies and Camera view images run on worker threads and are listed as "worker". Offscreen, the 3D view falls back to the QPainter renderer; its frame is excluded from the UI handlers' figures and listed on its own. The shader renderer's frame (what a desktop pays) is measured headless through EGL on the integrated AMD GPU (radeonsi), the same context the self-test makes.

Result

Step Thread SO-100 UR5e
build and show the main window (startup, once) start 252 ms 306 ms
show the Sensors and mounts page UI 0.8 ms [4.6] 1.5 ms [6.2]
show the Coverage page UI 0.6 ms [2.6] 0.6 ms [3.7]
show the Depth validity page UI 0.5 ms [2.6] 0.8 ms [3.2]
coverage study, whole run worker 252 ms 599 ms
Coverage page: the result arrives (show_result) UI 3.8 ms [4.4] 26.7 ms [27.2]
Coverage page: 3D slice overlay for one frame UI < 0.1 ms < 0.1 ms
depth-validity study, whole run worker 4.8 ms (no depth sensor) 339 ms
Depth page: the result arrives UI < 0.1 ms 0.3 ms [0.6]
Depth page: 3D overlays (min-Z zones, failing voxels) for one frame UI < 0.1 ms < 0.1 ms [1.1]
a joint change: posed meshes, frusta, volumes, page overlays UI 5.0 ms [6.9] 16.4 ms [19.9]
select each of the two sensors (Inspector, Camera view header, frusta) UI 26.1 ms [27.6] 38.9 ms [44.7]
Camera view: snapshot of the project for a render UI 0.1 ms [0.4] 0.2 ms [0.6]
Camera view: render one full-size image worker 27 ms 78 ms
Camera view: take the image and paint it with the page's overlays UI 0.6 ms [3.7] 0.7 ms [5.4]
Library panel: refill (40 entries) UI 0.8 ms [1.2] 0.8 ms [1.1]
New custom device dialog, started from a library device UI 16.8 ms [18.5] 16.4 ms [16.8]
largest watchdog stall after any step UI 8.6 ms 9.9 ms
3D view, shader renderer: first frame (mesh upload) UI 28 ms 57 ms
3D view, shader renderer: steady frame UI 7.8 ms [8.6] 11.9 ms [13.0]
3D view, shader renderer: frame after a joint change (pose, upload, draw) UI 26.5 ms [28.1] 67.6 ms [95.5]
3D view, QPainter fallback: one frame (no OpenGL) UI 160 ms [184] 586 ms [744]

No UI-thread step is over 100 ms on the samples with the shader renderer. Window start-up (0.25–0.31 s) happens once.

What was changed to meet it (Phase 2 integration)

Before these changes the shader renderer's frame after a joint change took 108 ms (SO-100) and 385 ms (UR5e):

Phases 3, 6 and 7 pages

Measured with scripts/measure_ui_phase3.py (QT_QPA_PLATFORM=offscreen python scripts/measure_ui_phase3.py --json out/ui-timings-phase3.json) on 2026-11-07, on an idle machine (the hardware and versions above; studies on the RTX 5080 through EGL). Milliseconds on the UI thread, the median of 3 with the largest in brackets (Preview and Apply: one run); Apply is undone after it is timed. The hand-eye solve page is measured after importing 12 board images rendered at the plan's poses; the import itself took 230 ms when called directly (the Import button now runs it as a window job, so the UI thread does not wait for it).

Page (sample) Show Result arrives 3D overlays Camera view overlays Preview Apply Largest stall after a step Study (worker)
tasks (UR5e) 1.3 [4.7] — 0.0 0.0 8.2 20.2 46.4 —
policies (UR5e) 1.6 [4.5] — 0.0 0.0 [0.2] — — 5.3 —
grasp (UR5e) 1.5 [4.1] 18.0 [18.1] 0.0 0.4 [0.7] 5.4 30.7 12.3 24.29 s
vla (UR5e) 1.5 [6.7] 0.2 [0.3] 0.0 [0.2] 0.1 [0.2] — — 11.9 0.08 s
bandwidth (UR5e) 2.1 [6.8] 1.7 [1.8] 0.3 [0.6] 0.0 0.0 13.7 13.4 0.02 s
cables (UR5e) 5.5 [10.3] 0.4 [0.5] 0.0 [0.1] 1.2 [1.5] 0.1 26.7 12.4 0.38 s
brackets (UR5e) 1.8 [5.9] 0.0 [0.1] 0.0 [0.1] 0.0 0.0 38.9 15.7 0.02 s
handeye plan (UR5e) 12.9 [21.0] 3.1 [5.5] 0.0 0.2 [0.5] 1.9 32.9 26.0 5.80 s
handeye solve (UR5e) 3.1 [7.6] 1.6 0.0 0.2 [0.6] 0.9 46.6 29.7 1.41 s
dexhand (dexhand) 1.3 [3.6] 0.4 [0.7] 0.1 [34.2] 36.9 [53.2] 0.4 60.7 67.3 4.94 s

No UI-thread step is over 100 ms. The largest are on the dexhand sample (30 joints, about 4 900 pad triangles): its Apply 60.7 ms and the events after it 67.3 ms, and its Camera view overlay 53.2 ms worst. Building and showing the main window (once) takes 0.82 s on the UR5e sample and 0.41 s on the dexhand sample, with fourteen pages built at start (0.31 s in Phase 2). With the full test suite running on the same machine one run measured the brackets page's Apply at 146 ms (39 ms idle; profiled alone 46–64 ms, most of it the Sensors and Policies pages rebuilding their editors on the edit), so a loaded machine can push the heavier Apply steps past the budget.

Known limits