From 8c172f4dc587c9df1c3c73777789e2cc1d585011 Mon Sep 17 00:00:00 2001 From: faumaray Date: Tue, 27 Oct 2026 04:54:24 +0300 Subject: [PATCH] spikes/gpui/README.md: the nightly clippy command; report: 9.6 as measured Co-Authored-By: Claude Sonnet 5.5 --- docs/design/gpui-spikes.md | 2 +- spikes/gpui/README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/design/gpui-spikes.md b/docs/design/gpui-spikes.md index 04617e4..9ff9dbb 100644 --- a/docs/design/gpui-spikes.md +++ b/docs/design/gpui-spikes.md @@ -19,7 +19,7 @@ exception is explained (a counter window longer than the case). `gpui-kit` | Spike | The plan's no-go | Seen (software rendering, see Setup) | Verdict | |---|---|---|---| -| 1. Video | below 30 fps at 1440p60 with no custom-element way out | `img()` with the port of `video.rs`' delivery, **raw (frames from memory, no decoder)**: 42 to 49 fps at 1440p60, 55 to 58 at 1080p60, on lavapipe; with the real VP8 encoder and decoder in the same process (pipeline) 40.8 fps at 1440p60 in a quiet window (the reviewer's run) and 10 at a busy one (the pipeline scales with free CPU); `cx.drop_image` keeps the atlas flat; a new 1440p picture costs GPUI's thread 6 to 7 ms; a persistent texture needs a GPUI change | **go**, with a GPU run first in the viewer slice | +| 1. Video | below 30 fps at 1440p60 with no custom-element way out | `img()` with the port of `video.rs`' delivery, **raw (frames from memory, no decoder)**: 42 to 49 fps at 1440p60, 55 to 58 at 1080p60, on lavapipe; with the real VP8 encoder and decoder in the same process (pipeline) 40.8 fps at 1440p60 in a quiet window (the reviewer's run) and 9.6 at a busy one (the pipeline scales with free CPU); `cx.drop_image` keeps the atlas flat; a new 1440p picture costs GPUI's thread 6 to 7 ms; a persistent texture needs a GPUI change | **go**, with a GPU run first in the viewer slice | | 2. Composer, IME, chat lines | no usable preedit | X11 preedit with fcitx5 and Pinyin works (marked text, candidate window at the caret, commit); emoji at the caret, paste, Ctrl+Enter, `TextRun`s as `StyledText` with links all work; Wayland preedit not exercised headless; colour emoji need a one-line GPUI patch | **go** | | 3. Second window | the second window cannot share state or steal the hotkey | one root entity in two windows, both change it, focus, fullscreen and close work, the X11 global hotkey reaches the model while the second window has focus, the preview is one shared `RenderImage` (+46 % of a core on lavapipe for the second window) | **go** | diff --git a/spikes/gpui/README.md b/spikes/gpui/README.md index e8bd12d..81cb7c6 100644 --- a/spikes/gpui/README.md +++ b/spikes/gpui/README.md @@ -50,6 +50,7 @@ spikes/gpui/shell.sh sh -c 'cd spikes/gpui && cargo fmt -p spike-common -p spike 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