Repository navigation
Overlap Settings startup paint fallback with mount - #2007
Draft
simonvanlaak wants to merge 1 commit into
Draft
simonvanlaak wants to merge 1 commit into
simonvanlaak wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Start the isolated preload's fallback animation callbacks alongside the commit IPC. Preserve the full hidden compositor copy, recover if native paint has already started a copy that then fails, and keep late startup signals from refocusing an open window. Section readiness stays independent of shell presentation.
This changes the Electron host handshake. The native window geometry, system theme, renderer layout, active-pane IPC admission and authoritative preference mutation continue through their existing entry points.
Verification
The 22 focused host tests passed. Eight targeted Electron tests passed in the published Linux 0.22.17 renderer with the candidate host and preload, covering hidden-frame light and dark pixels, missing entry, stalled animation callbacks, parent EOF, keyboard pane changes, narrow layouts and per-pane IPC refusal. The exact candidate frontend was also built and inspected in an isolated X display. General rendered its loading and ready states at 740 × 580 in light and dark appearance, with visible keyboard focus. The 640 px compact viewport kept its navigation and focused switch reachable.
Matched renderer diagnostic
Four alternating control/candidate pairs used the same Electron runtime, ready test data and synthetic parent. Cold means a fresh renderer profile. Warm means launching a new renderer process in the same profile after one use. Neither includes the Rust app launch or OS-cache eviction. The test holds General data until after the shell appears, sends Space once ready and replies to the observed preference request. Time starts at Electron spawn. Copy is start/end, show is the Electron API call, shell is the first successful rendered loading-state observation, ready is an enabled switch, ack is the parent pipe receiving the request and result is renderer readback. These observations have CDP/probe overhead and do not measure compositor map.
Times are milliseconds. Ordinary startup was noisy, including a 947 ms baseline outlier. Median show calls were 413.2 → 417.7 ms cold and 316.1 → 374.7 ms warm. The sample gives no reliable ordinary-path speedup. A one-pixel readback experiment showed no consistent copy improvement and was discarded.
Delayed mount response with no native paint notification
For these three additional pairs the harness suppressed
ready-to-showand added a 90 ms mount acknowledgement delay to both variants. This exercises fallback scheduling with real Electron frame callbacks. Commit-to-show improved in five of six pairs, with one cold outlier in each direction. These timings characterize the injected fault only.Isolated Linux compositor and clipboard
Three alternating cold/warm pairs completed on a disposable Omarchy/Hyprland VM with XWayland, an isolated network and matched copies of the Linux 0.22.17 AppImage renderer/runtime. Both sides used their respective main and preload files from this branch and its control. The direct Electron entry used synthetic About state. The normal AppImage control exited before its Settings child in the end-to-end attempt, so these timings start at the Settings process spawn. Cold uses a fresh profile. Warm relaunches Settings in the same profile. No platform caches were dropped.
Every run mapped a focused 740 × 580 window. The first sampled desktop captures contained the About title, selected navigation and loading content, with Hyprland's opening fade visible in most samples. The harness then supplied unique version state, focused Copy version and sent Space. It verified the actual Wayland clipboard string and the renderer's Copied acknowledgement. Map and pixels are observer timestamps from Hyprland window enumeration and the first completed grim capture. Capture completion includes substantial sampling overhead. The clipboard is polled before the renderer acknowledgement, so the order of those observations does not establish their actual commit order.
Times are milliseconds. First-sample completion medians were 1,015.6 → 677.8 ms cold and 822.9 → 844.7 ms warm. The third cold pair favored the control and warm results were mixed. These samples establish native presentation and an effective control with a synthetic parent. They leave installed Rust-to-settings timing and macOS window integration unverified.
The hook-backed Linux push passed the scoped repository checks and all 78 Electron tests. This draft leaves merge and landed-commit verification to the parent.
Issues
Refs #1999