Repository navigation
perf(gui): create the Vulkan instance while startup work runs - #379
chrispository wants to merge 2 commits into
Conversation
Pin GPUI to chrispository/gpui-omarchy perf/initial-window-background (c3a7c8c, based on the current pin 04965e8). The Wayland renderer now starts in the alpha mode of the window's initial background and decorations, so opening a window builds its pipelines once instead of three times. Interleaved launches (RTX 4090, Hyprland): window map median 210.7 -> 189.4 ms. No visual change in Omarchy's opaque, transparent or glassy modes, either at open or when switching while open. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pin GPUI to chrispository/gpui-omarchy perf/window-open-stack (4d64d59: the final-alpha-mode change plus a Vulkan instance prewarm) and start the prewarm before locale and settings work, so the driver load overlaps them instead of following them. Interleaved launches (RTX 4090, Hyprland), on top of the alpha-mode change: window map median 189.2 -> 176.9 ms. Starting it at the top of main measured the same; starting it after the settings worker spawns measured 186.1 ms. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Superseded by #381, which combines #378 and #379 with the parallel-pipelines change, now pinned to thisisgm/gpui-omarchy#7. |
This will need to wait until after these are merged, then repoint this to the main flea repo.
thisisgm/gpui-omarchy#4
thisisgm/gpui-omarchy#5
Summary
Stacked on #378. Review that one first. This PR's own change is the last commit.
This calls the new
gpui_platform::prewarm_gpu()before the locale and settings work inmain. The Vulkan driver then loads on a background thread while startup work runs, instead of after it.chrispository/gpui-omarchy@4d64d59(perf/window-open-stack: both PRs on top of04965e8).Numbers
RTX 4090, Hyprland 0.56.2, interleaved launches, untraced medians.
This commit, on top of #378 (8 rounds; the same binary with the prewarm switched on and off):
renderer_new(traced)Both PRs against current
main: window mapped 210.7 → 176.9 ms, −33.8 ms (−16.0%). The two results come from separate sessions. They line up, though: the "#378 only" figure (189.2 ms) matches what #378 measured againstmainin the first session (189.4 ms).Where to call it: I also measured other places for the call. The first line of
maingave 176.2 ms, no better than the chosen spot. Calling it after the settings worker spawns gave 186.1 ms, losing most of the gain. The current spot is right after backend log setup, beforeService::launch.What's left
About 100 ms of NVIDIA driver work is still on the critical path: driver load/init (~30–46 ms), then
vkCreateDevice(~60–75 ms). A standalone C probe gave the same numbers. Possible follow-ups, not in this PR:Diff
crates/flea-gui/src/main.rs+3 (one call plus a comment), plus the pin bump.cargo check -p flea-gui --lockedpasses.🤖 Generated with Claude Code
Summary by CodeRabbit