Skip to content

Show Whiteboard while its canvas is opening - #2000

Draft
simonvanlaak wants to merge 1 commit into
mainfrom
perf/whiteboard-open-ack
Draft

simonvanlaak wants to merge 1 commit into
mainfrom
perf/whiteboard-open-ack

Conversation

@simonvanlaak

@simonvanlaak simonvanlaak commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Show the existing Whiteboard window when an admitted Open meets its first paint. The opening state has an accessible status and a Close control. The host admits drawing only after the React canvas has mounted the parent-owned paper.
  • Keep the original placement, focus handoff, prewarm, cancellation, and canvas startup limit. The recording pill startup is outside the diff.

Verification

The built Electron window passed four Whiteboard smoke tests under an isolated Xvfb display. A fifth diagnostic deliberately withheld the renderer and verified that the child exited at its readiness deadline. The rendered opening and drawing states were inspected at 720×540 and 320×280 in both color schemes. The tests cover keyboard focus and Escape, rejection of edits before readiness, exact retained paper, and real pointer input with parent-acknowledged ink and the practice lesson.

Matched local replays used main control 72a73a91b92e, Electron 45.2.1, the same staged coach/runtime and fixtures, and control/candidate/candidate/control order. The intervening main update did not touch the measured Whiteboard or coach inputs. A 60 Hz X11 framebuffer observer sampled title and loading pixels. The canvas checkpoint uses the collector's painted-canvas observation. Each result required trusted Electron pointer events and exact stroke coordinates acknowledged by the fixture parent and painted by the renderer. Record starts the child on admitted Open, as the recording path does. The native capture coordinator and media device are fixture boundaries here.

Raw observations in milliseconds, in trial order:

Path Open → title pixels Open → painted canvas Open → verified stroke Record → first media fixture Onboarding v2 Record → verified stroke
Onboarding cold 307.4 / 311.5 / 288.0 / 249.2 280.3 / 299.6 / 273.2 / 211.6 356.8 / 383.1 / 343.6 / 280.7 52.5 / 92.5 / 21.8 / 32.5 475.8 / 532.6 / 466.9 / 401.0
Onboarding resumed 234.4 / 245.2 / 234.8 / 238.7 201.0 / 231.1 / 233.3 / 216.0 265.9 / 298.0 / 314.6 / 282.6 40.3 / 52.6 / 35.2 / 42.4 383.1 / 447.9 / 417.7 / 416.8
Record 318.3 / 323.6 / 315.1 / 410.4 313.1 / 323.8 / 305.5 / 411.2 367.0 / 368.7 / 363.7 / 462.4 — —
Record with identical 500 ms renderer hold 568.6 / 315.9 / 292.0 / 563.5 578.0 / 589.4 / 562.8 / 570.1 628.5 / 637.0 / 611.4 / 620.6 — —

The held-renderer candidate also painted the specific “Opening Whiteboard…” status at 321.4 and 282.5 ms. Ordinary trials did not resolve that transient status at 60 Hz. The held-renderer test verifies the earlier acknowledgement and shows the exact stroke remains gated on readiness. In these ordinary trials, mean Open → verified stroke increased 44.6 ms in cold onboarding and 32.1 ms in resumed onboarding. Record was faster on average, with a 95.4 ms spread between its controls. These small samples and shared host variance do not establish a general latency gain. In the held case, the title appeared 262.1 ms earlier on average while mean verified-stroke time was within 0.4 ms.

The prior hosted run 45631268614 was same-build v2 calibration. Earlier local prewarm experiments changed the launch point and had uneven first-media timings. These provided attribution context. The comparison here uses the current launch point and leaves the official v2 observer and scoring unchanged.

The candidate hosted run built both exact revisions. Both same-build calibration variants failed the existing 5% full-I/O-pressure guard, with some samples above 13% and a peak of 26.08%. The workflow stopped before candidate comparison and issued no candidate v2 score.

Local ordinary trials recorded peak process RSS of 153,632–155,220 KiB on control and 153,756–154,500 KiB on candidate. This is the existing per-process measure. The change reuses the existing Electron child.

The evidence above covers Linux Electron on Xvfb. Installed macOS or Linux compositor focus, placement, and native capture are unverified.

Issues

Refs #1997

@simonvanlaak
simonvanlaak marked this pull request as draft November 25, 2026 17:23

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant