Skip to content

fix(deps): pin rune to ffea1a6e, the effect warm for backdrop blur only (50 commits, rune#1979-#2037) - #1076

Closed
Hona wants to merge 16 commits into
devfrom
rune-pin/ffea1a6e
Closed

Hona wants to merge 16 commits into
devfrom
rune-pin/ffea1a6e

Conversation

@Hona

@Hona Hona commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

The Rune pin moves 4d8df909 -> ffea1a6ea (50 commits: rune#1979 .. rune#2037 and rune#2011). Stacked on #1045 (pin 761555829, the first 27 of them, all four effects warmed), which stays open as the fallback: if this head is clean it merges and #1045 is closed as contained in it; see #1045 for the first range's table.

What the bump does with the effect warm

  • rune#2006 made the post-first-frame effect pipeline warming opt-in; rune#2011 makes it per effect, starts the worker only once the window has rested, and never compiles a pipeline twice.
  • The app names backdrop blur alone: .prewarm_effects(rune::PrewarmEffects::BACKDROP_BLUR) in apps/desktop/src/lib.rs (rune_app).
  • Why that set (first-use runs in real windows on a cold shader cache): backdrop blur is the one effect named: its first use (Jump to latest, the composer's drop zone) costs 102-122 ms on NVIDIA and 81-106 ms on Intel on a cold shader cache when not warmed (seven launches, three hands), 10-22 ms when warmed; isolated layers cost nothing at first use on either adapter; layer blur is left to its first use, a compaction row's word morph, once per shader cache.
  • What it saves against dev (all four effects warmed): the worker's CPU on a cold cache falls from 375 / 438 ms to 47 / 63 ms (Intel, on a build of Rune 761555829 + rune#2011). On a warm cache the worker costs 1 to 2 ms either way.
  • A cost to know: the worker compiles only once the window has prepared no frame for 300 ms, or 5 s after it starts at the latest (QUIET and LIMIT in Rune's render/effect_warm/pace.rs). On a cold shader cache, a window that draws without pause in its first seconds (a reply streaming, a traced run) has backdrop blur warm about 6 to 7 s after the process starts, where dev (all four effects, no wait for rest) has them 2 to 3 s in. A first use of the blur inside that time is compiled on the frame, once per shader cache. A window that rests has it warm well under a second after the GPU hand-over.
  • Not measured: a machine with only an NVIDIA or AMD adapter; a fade in the first second after the GPU hand-over; the frame of layer blur's first use.

Manifest and lock

The sha in 21 Cargo.toml lines and 32 Cargo.lock lines. Rune's manifests do not change in 761555829..ffea1a6ea; rune-image -> moxcms is from the first range.

The second range (761555829..ffea1a6ea, 23 commits): what can touch the app

Read by diff (removed lines of existing code; the new files not): rune#2008, #2022, #2021, #2009, #2016, #2025. By title and stat only: the rest.

Area Commits What changes for the app Settled by
Fallback fonts rune#2008, #2020 Which fallback family loads for a character outside the app's fonts is decided by the active font's coverage, on every platform; text layouts are kept until the commit when fonts change walk d (fallback pass), walk a, a macOS start
Text layout rune#2013, #2026 text_indent, align_y: the default paths must stay pixel-equal walk a, b
Press, tap rune#2021, #2009 The press actions (tap, double, middle) are restructured; press offset; hover and press paint tracking walk c, s, n, starts-only
Clicks in a text field rune#2022, #2027, #2012 Single / double / triple click, shift-click and drag-select are rewritten around new handlers; caret reveal on focus (opt-in); copy handlers walk c (edit passes)
Motion, paint rune#2016, #2029, #2028 The flight lift path is rewritten; zero-duration curves stay instant under reduced motion walk a, frames
Anchoring rune#2025 Side-anchored content is clamped on the cross axis; the kit popover uses it for every side walk a, b
Window rune#2024, #2014, #2007 Cancellable close; display close; macOS first-mouse and document state starts-only quit, early quit
Effect warm rune#2011 Per effect, after the window rests, never twice the per-effect cold rows, jump.cold
macOS keys rune#2037 Option-as-Alt in the IME path not run
Additive, docs rune#2010, #2017, #2030, #2031, #2019 New API, accessibility refresh on live text, doctests CI compile

Builds

  • First head 906a08dd91 (pin and app line, the old pin's profile): green on macOS, Windows x64 and arm64. Used for the walk's pictures only.
  • Second head 480462c4e2 (on dev d5301503a8, profiles re-keyed): green on three targets; starts-only and a first early quit ran on it (below). dev then gained a dependency in two crate manifests (fix(updater): follow the release protocol and only replace installs we own #1099), which renamed 3,728 of the 15,293 functions the Windows profile holds, so it was re-keyed again.
  • Head 8598275495: dev b95c520543 taken in and both profiles re-keyed onto this tree's names from an instrumented build of it (chore(perf): instrumented names build for the Rune ffea1a6e pin on dev f4956843b8 (NEVER MERGE) #1111, closed): Windows 15,272 of 15,293 functions kept (12 dropped: their code changed; 9 gone); Apple silicon 15,267 of 15,288. Green on macOS, Windows x64 and arm64, Linux x64 and arm64, and guardrails.
  • Exact base of this head: 05be0f8fc2, the CI build of fix(pgo): re-key the profiles to the symbol names dev has had since #1099 #1128 (the same dev with its profiles re-keyed the same way, Rune 4d8df909). The two differ by the pin, the one app line and the profile's names for Rune's crates.
  • macOS: CI compile and reading only. Linux: CI compile on x64 and arm64; no profile is used there.

Runs

The walk compares pictures of the first head 906a08dd91 with dev's build 8fdbc08d4c (same app but for the pin and the app line). After every batch a check fails the batch if a pass drew its rest picture (its event did nothing); every batch below passed it on both sides. That check has a gap, found later: it does not see a pass whose first event acts and whose second adds nothing. One such pass is in batch a: filetree (the review panel, then the file tree's shortcut) draws the review pass's picture, on dev as on this head: no file tree is drawn in any of the 12 runs of that batch kept since 23 Nov (in 10 the two pictures are equal; in 2 they differ by 297 and 559 px in a small box that is not the file tree); it tests nothing more than review does. A second check now fails a batch whose pass equals an earlier pass of the batch.

Batch What it does Passes Pictures identical Rest
x A long timeline and the tour wheeled and swiped away and back, at a point inside the viewport 14 14
c Hover (tab, copy, model), edit keys, double-click in the composer, side-panel drag, palette, modals, resize, new tab, Home 20 18 2 run text
z A message's context menu (dark, light), bubble hover and its menu, model hover, double-click and drag-select on a message, Settings wheel, picker Tab 16 16 before side: dev 4c28c03c8
a Sessions, typing, slash and at menus, composer and header menus, context, launcher, terminal, review, file tree, tooltip, tab context menu 31 30 1 run text
b The fourteen Settings pages, palette (typed), quick open, session search, project select, find, select all, light theme (home, sessions, model menu, palette, Settings), narrow and wide windows 31 26 5 run text

Run text (two runs never draw the same scratch folder, port or version; the diff masks exactly that text element's rect and reports anything outside it):

  • a home: differs only in location-path-ltr's text (…smoke-25276-mwvfbey8-59yc\… / …smoke-38668-mwvf22ot-6ukv\…), 2,256 px, all inside its rect.
  • c hover-tab: differs only in the tab preview's detail text (…smoke-8304-mwveezh0-621m\… / …smoke-24232-mwve5ftu-fdl5\…), 1,748 px, all inside its rect.
  • c new-tab: differs only in location-path-ltr's text (the same two folders), 3,824 px, all inside its rect.
  • b home-light, project-select, quickopen: differ only in the text elements that hold the scratch folder (2,339, 6,350 and 4,301 px), all inside their rects.
  • b settings-about: differs only in the version text (Version 0.0.0-pr-1078-2338 / Version 0.0.0-pr-1076-2336), 124 px, all inside its rect.
  • b settings-servers: differs only in the fixture server's port (http://127.0.0.1:52609 / http://127.0.0.1:60590), 246 px, all inside its rect.

Walk batches s, m and n, first head against dev's build:

Batch What it does Passes Pictures identical Rest
s Sidebar rows hovered, the inbox layout, the sidebar's resize drags 8 7 1 run text
m Side panel drags and the review panel, each script twice 7 4 3 load timing
n A file dragged over the window and dropped 5 before side not run yet
  • m drag-side1, filetree2 (559 px each: the review header's "4 files changed" had loaded on one side only) and filetree1 (297 px: the brightness of one tab label): looked at. The same two states differ between two runs of the same script on one build, and the second runs of each script are identical across the two builds. Load timing of the review panel, not the pin.
  • In s the rest pictures were taken after the resize drags, and the sidebar's width is kept from pass to pass, so its three hover passes are not yet shown to be alive; s runs again with the rest pictures first.

On the head 8598275495:

  • Starts-only (the three app starts: plugins, session, launcher): 6 of 6 in 35.5 s; first frame, 17 built-in plugins, the launcher, a session's timeline, a prompt accepted; all three runs exit 0, no crash dump.
  • Early quit against the exact base 05be0f8fc2 (the Quit command 1.5 to 2.5 s after content live; a fresh home every launch, so a cold shader cache; the sides in turn; two tickets, 38 launches a side): all 76 exit 0, no crash dump. From the quit asked to the process gone, median 159 ms on the head and 142 ms on the base in the first ticket (the machine 39 % busy), 88 ms and 89 ms in the second (aimed at 1.9 to 2.3 s, where the warm worker compiles). No steady difference.
  • One head quit of the 38 took 1,411 ms from its exit code to the end of the process (every other launch: 37 to 150 ms). It was asked 447 ms after the GPU hand-over, where the warm worker can be inside the driver. It did not repeat in 20 head quits aimed at that moment, and none of the 38 base quits shows it. Rune waits for nothing at a quit (the process ends itself); the candidate is Windows ending a thread that is writing the shader cache. Who would wait: an update's helper, a relaunch straight after a quit; nobody looking at the window.
  • Memory: the app's memory states are unchanged against the base (55.0 to 55.6 MB at rest, 106.7 to 106.4 MB with sessions open; private working set, one run a side).

On the second head 480462c4e2 (kept for the record): starts-only 6 of 6; early quit against its exact base, 18 launches a side: median 100 ms on the head, 115 ms on the base, all 36 exit 0.

Still to run before the merge: walk batches d and y, the before side of n, and s again; the timing pair on 05be0f8fc2 against 8598275495 (frames, launch, jump.cold / jump.warm with the wheel at 9 s, launch.after-content, gpu_handed_cold, and the Jump button's first showing while a reply streams).

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Test build ready — Download OpenCode-Rune-PR-1076-macos-arm64.dmg

  • App: OpenCode (Rune) · rune-pin-ffea1a6e.app (badged #1076, bundle ID anomaly.opencode-rune.pr.1076)
  • Commit: 480462c4e (0.0.0-pr-1076-2355, sha256 1aa453c655bb…)
  • Side-by-side: installs alongside OpenCode (Rune).app without replacing your dev build; retired automatically when this PR closes.
  • Signing: Ad-hoc signed preview (PR code is never signed with release credentials) — after dragging to /Applications, run xattr -cr "/Applications/OpenCode (Rune) · rune-pin-ffea1a6e.app" once before first open.
  • Windows: x64 arm64 — unsigned setup (OpenCode (Rune) · rune-pin-ffea1a6e, installs side by side). SmartScreen asks once: More info, then Run anyway.

@Hona

Hona commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

Superseded by #1192 (the pin at d5c7a5ad2, which carries everything here and the fix this one lacked). Closed unmerged.

What this PR showed on its head 8598275495 against the same dev with its old pin:

  • The walk: every picture identical between the two pins in every batch, Review itself included, but for one intended difference: a PNG tagged Display P3 is drawn in its true colours (rune#1991).
  • Launch, files in memory, 26 pairs: no change (first frame 34.7 to 35.4 ms; later in 12 of 26).
  • The hand-over on a cold shader cache, 10 launches a side: CPU after content live 3,558 to 3,052 ms (14 % less), the shader cache on disk 2,198 to 1,766 KiB: what the blur-only warm was for.
  • Early quit, 76 launches; memory: no change.
  • Why it did not ship: with a reply streaming, a wheel 4 s into a cold-shader-cache launch showed the Jump-to-latest button's first frame at 87 to 102 ms (18 to 21 ms on the old pin), in 4 of 4 runs. At ffea1a6ea the warm worker waits up to 5 s for a window that never rests, so the blur compiled on the frame's own thread. With the wheel at 8 s the same frame was 13 ms. rune#2177 cuts the wait to 1 s; fix(deps): pin rune to d5c7a5ad, the effect warm for backdrop blur only (214 commits, rune#1962-#2246) #1192 pins a commit that has it.

@Hona Hona closed this Nov 25, 2026
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