Skip to content

perf(gui): start the renderer in the window's final alpha mode - #378

Closed
chrispository wants to merge 1 commit into
thisisgm:mainfrom
chrispository:perf/initial-window-background
Closed

chrispository wants to merge 1 commit into
thisisgm:mainfrom
chrispository:perf/initial-window-background

Conversation

@chrispository

@chrispository chrispository commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

Pins GPUI to a commit that starts the Wayland renderer in the window's final alpha mode, so opening a window builds its render pipelines once instead of three times. No Flea code changes. Flea already passes its glass background to open_window.

Numbers

RTX 4090, Hyprland 0.56.2, 10 interleaved rounds against the current main:

main This PR Change
Window mapped (untraced median) 210.7 ms 189.4 ms −21.3 ms (−10.1%)
First frame with listing presented (traced median) 225.2 ms 201.5 ms −23.7 ms (−10.5%)
Pipeline sets built at open 3 1 −67%

Visual check

Screenshots against main in all three Omarchy window modes (opaque, transparent, glassy). Each window was opened in every mode, then switched through the others while it stayed open.

  • Against main: no differences apart from a hover highlight and a folder size still being counted.
  • Mode switches: they behave exactly as on main.

Diff

Cargo.toml (2 lines) and Cargo.lock (only the GPUI package sources change). cargo check -p flea-gui --locked passes.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the underlying UI platform. No changes to user-facing features or behavior are noted.

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]>
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

The gpui and gpui_platform workspace dependencies now use the chrispository/gpui-omarchy fork at revision c3a7c8c0d38f1a9167a62ca5f58528dc4338fb55. Their aliases and platform features are unchanged.

Changes: GPUI dependency source update

Layer / File(s) Summary
Update GPUI dependency sources
Cargo.toml
The gpui and gpui_platform dependencies now point to the chrispository/gpui-omarchy fork at the new revision. Their aliases and platform features remain unchanged.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: thisisgm

Merge Risk: Minimal · up to 81336

No actionable merge-blocking risk is established for this dependency pin update; merge after normal build checks pass.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title describes a renderer start-mode change in GPUI, but the changeset only repins the gpui and gpui_platform dependencies in Cargo.toml to a different fork revision. The title names a GPUI behav…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description explains the change and its purpose, provides benchmark results and visual verification, and identifies the GPUI pin and follow-up action. It does not include the template headings or …
Full details: Title check

Explanation

The title describes a renderer start-mode change in GPUI, but the changeset only repins the gpui and gpui_platform dependencies in Cargo.toml to a different fork revision. The title names a GPUI behavior that the pinned commit provides, so it is partially related. It does not say that the change is a dependency pin, and it describes the effect as a perf change in the flea-gui scope. The title is therefore partially related rather than fully related, so the check passes.

Full details: Description check

Explanation

The description explains the change and its purpose, provides benchmark results and visual verification, and identifies the GPUI pin and follow-up action. It does not include the template headings or explicit confirmations for rebasing, running ./tests/run-all.sh, and testing every affected view, but the required information is mostly present.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c75d0d81-340d-4aa1-9b5f-dce757516654
Commits

Reviewing files that changed from the base of the PR and between 73f3c23 and 813363d.

Files ignored due to path filters: 1
  • Cargo.lock is excluded by !**/*.lock
Files selected for processing: 1
  • Cargo.toml

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@chrispository

Copy link
Copy Markdown
Contributor Author

Superseded by #381, which combines #378 and #379 with the parallel-pipelines change, now pinned to thisisgm/gpui-omarchy#7.

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