Repository navigation
Studio Desktop: turn GPU compositing on for NVIDIA X11 drivers 590 and newer - #19186
Conversation
…d newer The sync_file leak that keeps compositing off on NVIDIA X11 is tied to the 580 branch, not to anything below 610. Measured on real driver installs: 580.178.04 leaks with both the open and proprietary kernel modules, and 580.196.07, the newest 580 release, still leaks. 590.48.01 (open and proprietary), 595.58.03 and 595.91.07 do not. Lower NVIDIA_COMPOSITING_MIN_BRANCH from 610 to 590 and update the tests, the log reason and the driver warning string in every locale.
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Reported on Reddit (#18259): on Linux Mint X11 with an RTX 5090 and driver 595.99.02, chat scrolling in the desktop app stalls and then jumps ahead. Below driver 610, Desktop turns WebKit compositing off on NVIDIA X11, and without compositing WebKit has no threaded scrolling. #18267 made wheel scrolling step instead of animate on that path. With this PR, 590 and 595 hosts like this one get compositing back, and with it smooth scrolling.
The 610 cutoff comes from #15546, which had data only for 580 (composited WebKit leaks one
sync_filefd per frame) and 610/615 (clean). 590 and 595 were never tested.This PR lowers the cutoff to 590, based on live measurements: each driver below was installed on a real machine, booted, and tested.
How it was measured
/proc/driver/nvidia/versionshowed the expected version and module flavor.Each boot ran two tests:
eglWaitSynccalls per frame, one of them on an imported native fence, and the test counts the fds left after 200 frames. It ran three times per boot. A control mode with a single wait ran once and leaked 0 fds on every driver, leaking or not.UNSLOTH_WEBKIT_DISABLE_COMPOSITING=0. That variable selects the same composited shared-memory plan this gate turns on. The app ran on an Xvfb display and scrolled continuously for 150 seconds while the web process'ssync_filefds were counted every 5 seconds.Results
sync_filefds at 150 sThe driver branch decides the outcome:
Change
NVIDIA_COMPOSITING_MIN_BRANCHinstudio/src-tauri/src/linux_webkit.rsgoes from 610 to 590, with the comment, log reason and tests updated to match. All 882studio/src-tauribinary tests pass, and rustfmt is clean.UNSLOTH_WEBKIT_DISABLE_COMPOSITING=1still turns compositing off.Not tested