Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
docs(webcam): close out the review threads on the measurement record
EtienneLescot113051faf2f5
diff --git a/technical-documentation/engineering/webcam-segmentation-bench-brief.md b/technical-documentation/engineering/webcam-segmentation-bench-brief.mdindex ed4a0d511..c44423168 100644--- a/technical-documentation/engineering/webcam-segmentation-bench-brief.md+++ b/technical-documentation/engineering/webcam-segmentation-bench-brief.md@@ -1,5 +1,12 @@# Brief — segmentation experiment ladder (round 3: settle the execution provider)+> **This round has been run and closed.** It is kept as the record of what was asked and under+> which constraints, not as work to do. The answer it produced — CPU execution provider, 256x144,+> 30 Hz, two intra-op threads — and the reasoning that followed are in+> [webcam-segmentation.md](webcam-segmentation.md); the compositor has since been built on it.+> Read the requirements below as the brief that was issued, and do not tighten them for a run that+> is over: a later round needs its own brief.+Self-contained brief for an agent on a test machine. Read[webcam-segmentation.md](webcam-segmentation.md) for the decision this feeds.@@ -19,8 +26,12 @@ the workload is **memory-bandwidth-bound per pixel**; input resolution is the leIt is the only unknown left that changes the architecture. The CPU EP already measures **21 %faster than DirectML** in isolation here (2.476 vs 3.119 ms p10) and it never touches thecontended GPU queue. If that holds under load, it removes the D3D11↔D3D12 shared-handle interop,-the adapter-LUID matching, the cross-queue fence and the DirectML packaging cost — on all three-platforms at once.+the adapter-LUID matching, the cross-queue fence and the DirectML packaging cost.++That last clause was written as "on all three platforms at once", and it overreached: the+measurement behind it is **one Windows box**. What it actually settles is that the Windows build+needs no GPU execution path. macOS and Linux inherit the *architecture* — no interop, no second+device — because they were then built that way, not because either was measured. Neither has been.The risk that could kill it: this box is a **4-core / 8-thread** Ryzen 5 7520U. An ONNX RuntimeCPU session that grabs every core will fight the compositor's own CPU work. **Thread count is the@@ -102,7 +113,9 @@ Then, in prose:## Do not pursue- ORT session hygiene and hand-fused SE compute shaders — round 2 measured the total fixed cost at- 0.43 ms, so both cap at ~14 %.+ 0.43 ms. That is **14 % of DirectML's 3.119 ms p10**, the provider it was measured against; it is+ 17 % of the CPU EP's 2.476 ms. The cap is a share of whichever provider you are standing on, not+ a universal 14 %.- Inputs below 128×80: at 64×48 the model emits an all-background mask. It breaks, it does notdegrade. Both dimensions must also be **divisible by 16** or the skip-connection `Add`s fail.- **RobustVideoMatting** — GPL-3.0 against an MIT app.diff --git a/technical-documentation/engineering/webcam-segmentation.md b/technical-documentation/engineering/webcam-segmentation.mdindex 35d0792fd..b9b50a649 100644--- a/technical-documentation/engineering/webcam-segmentation.md+++ b/technical-documentation/engineering/webcam-segmentation.md@@ -157,7 +157,7 @@ else if (effect > 0.5) alpha = alpha * m; // cutoutWhat is *not* cheap is producing that mask on the device that consumes it.- The compositor renders on its own `ID3D11Device` in the **main** process — feature level 11_1- only (`d3d_windows.rs:75` bails on anything else), default adapter (`pAdapter = None`), and+ only (`d3d_windows.rs:75` requests it, `:204` bails on anything else), default adapter (`pAdapter = None`), and`SetMultithreadProtected(true)`.- MediaPipe runs in the **renderer** process. No JS API exposes a shared DXGI handle from ANGLE,so zero-copy between the two is unreachable from that side.