0.8.1 came out on 2026-10-26, a day after the 0.8.0 the three spikes were
measured on. `=0.8.1` in spikes/gpui/Cargo.toml and `cargo update -p
gpui-kit --precise 0.8.1` move 40 packages of the lock (1,069 entries
before, 1,065 after): gpui-kit, gpui-base, gpui-component and
gpui-kit-assets to 0.8.1, the 19 gpui-pre crates to 0.3.10, wgpu 29 to 30
(naga 29 to 30), taffy 0.13 to 0.15. No source change: the spikes build as
they were, release, on Rust 1.95.0.
One run of each README's measurement command on Xvfb :96 (openbox, a
private bus, lavapipe through wgpu's Vulkan backend, state under .scratch)
with the machine at a load average of 64 to 80 (the 0.8.0 runs: 28 to 53):
- composer drive.sh 8 PASS, ime.sh 3 PASS, windows drive.sh 11 PASS, no FAIL;
the composer's screenshot differs from the committed one in 579 of 900,000
pixels;
- video: static 1440p 22.7 fps shown at 259 % CPU (11.4 % of CPU per fps,
0.8.0: 11.7), raw 1440p60 13.4 fps at 174 % (13.0; 0.8.0: 12.5 to 13.1),
memory flat with drop_image, +408 MiB in 10 s without it; windows-both
123 % of a core, the preview shown 14.4 of 15 a second, memory flat.
The frame rates are lower than 0.8.0's because of the load; the cost of a
shown frame is the same. The report says plainly that the 42 to 49 fps raw
1440p figures were not reproduced on 0.8.1, only the cost per frame was.
So the pin is gpui-kit 0.8.1, exactly. docs/design/gpui-spikes.md ("The
version to pin", the status paragraph, the setup table) and the spikes'
README say so; its figures stay 0.8.0's.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
GPUI spikes
The three spikes of plan section 6 step 1 (Slint to GPUI), with their measurements and the go/no-go in docs/design/gpui-spikes.md:
| Crate | Spike | README |
|---|---|---|
video/ |
decoded video as BGRA RenderImages in img(), 1080p60 and 1440p60, against the Slint path |
video/README.md |
composer/ |
the composer (multi-line input, emoji at the caret, paste, Ctrl+Enter, IME preedit) and chat lines as StyledText |
composer/README.md |
windows/ |
a second window sharing the root entity, focus, fullscreen, close, a global push-to-talk hotkey, a shared preview | windows/README.md |
common/ |
CPU, thread and memory meter (/proc), damage-count and proc-meter, fonts, icons, the BGRA conversion |
This is a Cargo workspace of its own (own Cargo.lock, not a member of the
root workspace: the root's lock, deny policy, notices and CI are not
involved). It builds into the checkout's target/ (.cargo/config.toml).
Nothing here is wired into crates/voelin-ui; the client's crates are used
read only, by path (voelin-core, voelin-media, voelin-platform,
voelin-ui-vm, and voelin-model at the root's revision).
Toolchain
gpui-kit 0.8.1 is pinned exactly (gpui-pre 0.3.10; the report's figures are
0.8.0's, and its "The version to pin" tells what the rebuild on 0.8.1 found). No gpui-kit release builds with the
repository's Rust 1.94: every gpui-pre 0.3.x (the GPUI snapshot under all
of them) calls std::hint::cold_path, stable since 1.95.0 (E0658 on 1.94).
The workspace says rust-version = "1.95"; the spikes build with 1.95.0
(the default of shell.sh) and nightly 2026-10-24 (TOOLCHAIN=nightly,
rustc 1.101.0-nightly of 2026-10-23), both from one pinned fenix; clippy
with -D warnings is clean on both (nightly's has two lints 1.95.0's lacks,
chunks_exact_to_as_chunks and for_unbounded_range; the code uses
as_chunks in common/src/bgra.rs and an inclusive range in
video/src/main.rs). TOOLCHAIN=1.94 spikes/gpui/shell.sh sh -c 'cd spikes/gpui && cargo build --locked --ignore-rust-version' shows the failure.
Environment (NixOS)
shell.sh runs a command with everything the builds and runs need: the
toolchain (1.95.0 from a pinned fenix), the native libraries (pkg-config
and LD_LIBRARY_PATH built from nixpkgs store paths), Mesa's lavapipe as the
only Vulkan driver (VK_DRIVER_FILES), the Vulkan loader, Xvfb, openbox,
xdotool, xwd, ImageMagick, xclip, jq, and the Noto Color Emoji and Noto Sans
CJK fonts (SPIKE_EMOJI_FONT, SPIKE_EXTRA_FONTS). nixpkgs is the flake
registry's: the measurements in the report used nixpkgs 02c087f3fe67
(Mesa 26.2.5, llvmpipe on LLVM 21.1.8); nix registry pin or another
registry entry changes them.
spikes/gpui/shell.sh sh -c 'cd spikes/gpui && cargo build --locked --release'
# -p: `--all` would take in the client's crates, which are path dependencies
spikes/gpui/shell.sh sh -c 'cd spikes/gpui && cargo fmt -p spike-common -p spike-video -p spike-composer -p spike-windows --check'
spikes/gpui/shell.sh sh -c 'cd spikes/gpui && cargo clippy --locked --all-targets -- -D warnings'
spikes/gpui/shell.sh sh -c 'cd spikes/gpui && cargo test --locked'
TOOLCHAIN=nightly spikes/gpui/shell.sh sh -c 'cd spikes/gpui && cargo build --locked'
TOOLCHAIN=nightly spikes/gpui/shell.sh sh -c 'cd spikes/gpui && cargo clippy --locked --all-targets -- -D warnings'
Headless displays
Every window runs on a display of its own, never on the desktop's:
headless.sh(used for every measurement): Xvfb:91(3840x2160, 24 bit, no TCP), openbox as the window manager (fullscreen, activation and close requests need one), a private D-Bus session bus that starts no services,WAYLAND_DISPLAY,XDG_SESSION_TYPEand the desktop's bus address removed, the XDG directories under.scratch/gpui-spikes-state. GPUI takes its X11 backend; the renderer is wgpu on lavapipe.headless-wayland.sh: sway on wlroots' headless backend (weston's has no seat, which GPUI's Wayland backend requires) on a socket in its own runtime directory (.scratch/wl), for GPUI's Wayland backend; no X display is set.-r pixman(default) keeps the compositor on the CPU;-r gles2or-r vulkanput it on a render node.
spikes/gpui/shell.sh spikes/gpui/headless.sh -- COMMAND
spikes/gpui/shell.sh spikes/gpui/headless-wayland.sh -- COMMAND
Results (JSON lines, screenshots) go to $OUT, by default
.scratch/gpui-spikes-results (git ignores .scratch/).