xcl-gui: a window to run XCL, read its log, edit settings and update #1709

Open
nikitronick-crypto wants to merge 8 commits from upstream-pr/1719 into main
nikitronick-crypto commented 2026-11-24 19:46:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nikitronick-crypto on 2026-11-24T19:46:40Z.


A window for people who would rather not use a command line: pick the game once, press Play, read what XCL prints and its xcl.log as they grow, edit the title's xcl.toml, and precompile the game's shaders. It is a program of its own (crates/xcl-gui) that runs xcl run <game> and xcl shaders … --precompile from outside: nothing of XCL's runtime is linked or changed, and no existing file is touched except the workspace's member list and Cargo.lock.

Opened to ask first whether a GUI is wanted in the tree at all. It is far over the size target (3 198 lines without Cargo.lock): if it is wanted I will split it into stacked PRs (logic and its tests, the process runner, the window, the settings pages, update and build, the precompile pass). If it is not, it stays in my fork and this can be closed.

Related: #1500 adds a WinForms developer launcher with presets. This one is aimed at running and watching a title rather than at debug presets: live console and log, an errors page, and the title's xcl.toml. I am glad to fold the useful parts into that work instead.

What is in it

  • crates/xcl-gui/src/logic.rs: log-line severity, xcl.toml edits that keep comments and unknown keys (toml_edit), the window's settings, English and Spanish texts, reading the precompile pass's reports and the time left, with tests
  • crates/xcl-gui/src/runner.rs: starting a program, its output line by line, following a log file, stopping it with what it started, with tests
  • crates/xcl-gui/src/main.rs: the window (egui): home page, console, log, errors, settings, and an XCL page that runs git pull and cargo build -p xcl with a progress bar
  • crates/xcl-gui/README.md, Cargo.toml (new workspace member), Cargo.lock

New since the first push:

  • Precompile shaders, on the home page under Play: runs xcl shaders <package> --precompile --pipelines [--used-only] (--only cs by a switch) with a progress bar, the time left and Stop. The home page says when a pass last ran to its end. An update compares the shader translators' files (crates/xcl/src/gpu, crates/xcl/build.rs) before and after git pull and says when the pass has to be run again.
  • Selecting and copying lines of the console and the logs: click, Shift+click, drag, Ctrl+A, Ctrl+C. eframe's clipboard feature was missing, so nothing reached the system clipboard before.
  • Three themes: the colours of the pictures in assets/readme (the default), black, and light.
  • main is merged in, which resolves the Cargo.lock conflict.
  • A run stopped from the window now ends as "Stopped from this window" (the slip noted in the first description).

Tested

  • head 6fa6d6f, no uncommitted changes, NVIDIA GeForce RTX 3080 Ti (12084 MiB dedicated, driver 621.24 / 32.0.16.2124), AMD Ryzen 5 7500F, Windows, Rust 1.100.0 (0ef1bc386 2026-11-09):
    • cargo test --workspace -- --test-threads=4 (debug): 1268 passed, 0 failed, 46 ignored. The 18 tests of xcl-gui are among them.
    • SKIPPED, 27 lines: 20 "no wave64" (in gpu::recomp::lower, lower_dxil and gpu::recomp::tests, among them gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware); 3 "wave32, per-lane form: refused" (f16_programs_on_the_gpu twice, f32_programs_on_the_gpu once); pso_measurement_compiles_an_exact_synthetic_record (Windows Developer Mode is required); test_title_draws_with_a_root_signature_under_the_debug_layer (no d3d12SDKLayers.dll); uploads_start_from_each_subresources_state (no D3D12 debug layer); heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)
    • cargo build --release, and the window opened
  • same PC, the window built from earlier commits of this branch, with a real title:
    • 32087fa: a whole precompile pass from the window (26 503 shaders, and the compute pipelines earlier runs used), followed to its end with its bar and time left. In the title's next run, started from the window, the log shows 70 pipelines with "driver blob supplied" in the first minute, and the title's window showed "compiling shaders: … 67 done" where the run before the pass showed 227.
    • 6151401: Play, the console and xcl.log followed live, Stop, the title's settings page on its real xcl.toml, update and build
  • on Linux, with a stand-in for xcl.exe: the 18 tests, the pages in the three themes, the precompile pass with its bar, stopping it, the update check with and without a change of the translators, and selecting lines (click, Shift+click, drag with scrolling, Ctrl+A) and copying them to the X clipboard
  • on Windows: selecting and copying lines, the black and light themes, and the warning after an update that changes the shader translators

Regression run

Same title, 60 s each, RTX 3080 Ti, one run after the other. This PR does not change the runtime's code (outside its own crate only Cargo.toml and Cargo.lock), so the difference between the two is run-to-run variation, not an effect of this change.

main:

xcl-smoke v1
commit: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6
gpu: NVIDIA GeForce RTX 3080 Ti
title: 9a60a330
seconds: 60
exit: 0x0
frames shown: 1292 (PresentX 1292)
presents per 2 s (last 3): 4 3 6
device removals: 0
crashes: 0
peak commit: 25890 MB

PR:

xcl-smoke v1
commit: 6fa6d6ff044311decbe651f4f51bce93d44dc666
gpu: NVIDIA GeForce RTX 3080 Ti
title: 9a60a330
seconds: 60
exit: 0x0
frames shown: 1583 (PresentX 1583)
presents per 2 s (last 3): 60 59 27
device removals: 0
crashes: 0
peak commit: 17061 MB

Not tested

  • a precompile pass with --used-only unticked (every compute pipeline) from the window
  • the Intel Iris Xe PC of the first push was not run again at this head
  • the licences of the transitive dependencies of eframe / rfd (and now arboard, for the clipboard) against GPL-2.0-only (the direct dependencies are MIT or MIT / Apache-2.0)
  • AMD and other NVIDIA cards

AI use

  • Claude Code with Claude Fable 5.2 wrote the code, its tests and this description. I built it, ran the tests and the regression runs, and used the window with a title on my PC.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5479164169 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1719). Originally posted by [nikitronick-crypto](https://github.com/nikitronick-crypto) on 2026-11-24T19:46:40Z. --- A window for people who would rather not use a command line: pick the game once, press Play, read what XCL prints and its `xcl.log` as they grow, edit the title's `xcl.toml`, and precompile the game's shaders. It is a program of its own (`crates/xcl-gui`) that runs `xcl run <game>` and `xcl shaders … --precompile` from outside: nothing of XCL's runtime is linked or changed, and no existing file is touched except the workspace's member list and `Cargo.lock`. Opened to ask first whether a GUI is wanted in the tree at all. It is far over the size target (3 198 lines without `Cargo.lock`): if it is wanted I will split it into stacked PRs (logic and its tests, the process runner, the window, the settings pages, update and build, the precompile pass). If it is not, it stays in my fork and this can be closed. Related: #1500 adds a WinForms developer launcher with presets. This one is aimed at running and watching a title rather than at debug presets: live console and log, an errors page, and the title's `xcl.toml`. I am glad to fold the useful parts into that work instead. **What is in it** - `crates/xcl-gui/src/logic.rs`: log-line severity, `xcl.toml` edits that keep comments and unknown keys (`toml_edit`), the window's settings, English and Spanish texts, reading the precompile pass's reports and the time left, with tests - `crates/xcl-gui/src/runner.rs`: starting a program, its output line by line, following a log file, stopping it with what it started, with tests - `crates/xcl-gui/src/main.rs`: the window (egui): home page, console, log, errors, settings, and an XCL page that runs `git pull` and `cargo build -p xcl` with a progress bar - `crates/xcl-gui/README.md`, `Cargo.toml` (new workspace member), `Cargo.lock` New since the first push: - **Precompile shaders**, on the home page under Play: runs `xcl shaders <package> --precompile --pipelines [--used-only]` (`--only cs` by a switch) with a progress bar, the time left and Stop. The home page says when a pass last ran to its end. An update compares the shader translators' files (`crates/xcl/src/gpu`, `crates/xcl/build.rs`) before and after `git pull` and says when the pass has to be run again. - **Selecting and copying lines** of the console and the logs: click, Shift+click, drag, Ctrl+A, Ctrl+C. `eframe`'s `clipboard` feature was missing, so nothing reached the system clipboard before. - **Three themes**: the colours of the pictures in `assets/readme` (the default), black, and light. - `main` is merged in, which resolves the `Cargo.lock` conflict. - A run stopped from the window now ends as "Stopped from this window" (the slip noted in the first description). **Tested** - head `6fa6d6f`, no uncommitted changes, NVIDIA GeForce RTX 3080 Ti (12084 MiB dedicated, driver 621.24 / 32.0.16.2124), AMD Ryzen 5 7500F, Windows, Rust 1.100.0 (0ef1bc386 2026-11-09): - `cargo test --workspace -- --test-threads=4` (debug): 1268 passed, 0 failed, 46 ignored. The 18 tests of `xcl-gui` are among them. - SKIPPED, 27 lines: 20 "no wave64" (in `gpu::recomp::lower`, `lower_dxil` and `gpu::recomp::tests`, among them `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware`); 3 "wave32, per-lane form: refused" (`f16_programs_on_the_gpu` twice, `f32_programs_on_the_gpu` once); `pso_measurement_compiles_an_exact_synthetic_record` (Windows Developer Mode is required); `test_title_draws_with_a_root_signature_under_the_debug_layer` (no d3d12SDKLayers.dll); `uploads_start_from_each_subresources_state` (no D3D12 debug layer); `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows) - `cargo build --release`, and the window opened - same PC, the window built from earlier commits of this branch, with a real title: - `32087fa`: a whole precompile pass from the window (26 503 shaders, and the compute pipelines earlier runs used), followed to its end with its bar and time left. In the title's next run, started from the window, the log shows 70 pipelines with "driver blob supplied" in the first minute, and the title's window showed "compiling shaders: … 67 done" where the run before the pass showed 227. - `6151401`: Play, the console and `xcl.log` followed live, Stop, the title's settings page on its real `xcl.toml`, update and build - on Linux, with a stand-in for `xcl.exe`: the 18 tests, the pages in the three themes, the precompile pass with its bar, stopping it, the update check with and without a change of the translators, and selecting lines (click, Shift+click, drag with scrolling, Ctrl+A) and copying them to the X clipboard - on Windows: selecting and copying lines, the black and light themes, and the warning after an update that changes the shader translators **Regression run** Same title, 60 s each, RTX 3080 Ti, one run after the other. This PR does not change the runtime's code (outside its own crate only `Cargo.toml` and `Cargo.lock`), so the difference between the two is run-to-run variation, not an effect of this change. main: ``` xcl-smoke v1 commit: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6 gpu: NVIDIA GeForce RTX 3080 Ti title: 9a60a330 seconds: 60 exit: 0x0 frames shown: 1292 (PresentX 1292) presents per 2 s (last 3): 4 3 6 device removals: 0 crashes: 0 peak commit: 25890 MB ``` PR: ``` xcl-smoke v1 commit: 6fa6d6ff044311decbe651f4f51bce93d44dc666 gpu: NVIDIA GeForce RTX 3080 Ti title: 9a60a330 seconds: 60 exit: 0x0 frames shown: 1583 (PresentX 1583) presents per 2 s (last 3): 60 59 27 device removals: 0 crashes: 0 peak commit: 17061 MB ``` **Not tested** - a precompile pass with `--used-only` unticked (every compute pipeline) from the window - the Intel Iris Xe PC of the first push was not run again at this head - the licences of the transitive dependencies of `eframe` / `rfd` (and now `arboard`, for the clipboard) against GPL-2.0-only (the direct dependencies are MIT or MIT / Apache-2.0) - AMD and other NVIDIA cards **AI use** - [Claude Code](https://claude.com/claude-code) with Claude Fable 5.2 wrote the code, its tests and this description. I built it, ran the tests and the regression runs, and used the window with a title on my PC. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
DavidM1911 commented 2026-11-24 23:08:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:28:46Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7146278799 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1719#issuecomment-7146278799). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T22:28:46Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. Thanks!
nikitronick-crypto commented 2026-11-25 15:07:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nikitronick-crypto on 2026-11-25T14:42:07Z.


Captura de pantalla 2026-11-25 095612 Captura de pantalla 2026-11-25 095705 Captura de pantalla 2026-11-25 095541 Captura de pantalla 2026-11-25 095634 Captura de pantalla 2026-11-25 095654 Captura de pantalla 2026-11-25 112245
<!-- greyfinch-sync:ivall/xcl:comment:7165681231 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1719#issuecomment-7165681231). Originally posted by [nikitronick-crypto](https://github.com/nikitronick-crypto) on 2026-11-25T14:42:07Z. --- <img width="1126" height="778" alt="Captura de pantalla 2026-11-25 095612" src="https://github.com/user-attachments/assets/205de85e-0a38-44b9-9908-9ac81b98d9b1" /> <img width="1515" height="999" alt="Captura de pantalla 2026-11-25 095705" src="https://github.com/user-attachments/assets/db95e084-a3dd-4a35-a120-c7c8e7ae71d7" /> <img width="1138" height="787" alt="Captura de pantalla 2026-11-25 095541" src="https://github.com/user-attachments/assets/4333374a-911f-4337-aa31-28dc1348352d" /> <img width="1156" height="789" alt="Captura de pantalla 2026-11-25 095634" src="https://github.com/user-attachments/assets/4e52bac8-95fc-4ac3-beb9-bd8c64b3b5a5" /> <img width="1534" height="994" alt="Captura de pantalla 2026-11-25 095654" src="https://github.com/user-attachments/assets/2cfe7ec7-34fd-497b-8f0f-6964aa448d83" /> <img width="1423" height="811" alt="Captura de pantalla 2026-11-25 112245" src="https://github.com/user-attachments/assets/442a0b9e-0639-45cb-8c29-d111207c67a4" />
DavidM1911 commented 2026-11-26 07:03:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T06:17:08Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7184277655 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1719#issuecomment-7184277655). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T06:17:08Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
github-actions[bot] commented 2026-11-30 08:43:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:43:09Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7273256990 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1719#issuecomment-7273256990). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-30T08:43:09Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 06:34:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:34:43Z.


Triage (#1607) – head 6fa6d6f

No other PR adds this window. #1500 (a PowerShell developer launcher with env-var presets) and #3457 (a controller game-library menu, crates/xcl-menu) are other front-ends for xcl run. They take different approaches, and the maintainer has to decide which, if any, belongs in the tree.
At about 3200 lines without Cargo.lock it is far over the size target. The description already offers to split it into stacked PRs.
It makes crates/xcl-gui a workspace member, so cargo build --workspace and CI now build eframe for every contributor. #3457 keeps its crate out of the workspace instead.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7303033142 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1719#issuecomment-7303033142). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:34:43Z. --- **Triage (#1607)** – head 6fa6d6f No other PR adds this window. #1500 (a PowerShell developer launcher with env-var presets) and #3457 (a controller game-library menu, `crates/xcl-menu`) are other front-ends for `xcl run`. They take different approaches, and the maintainer has to decide which, if any, belongs in the tree. At about 3200 lines without `Cargo.lock` it is far over the size target. The description already offers to split it into stacked PRs. It makes `crates/xcl-gui` a workspace member, so `cargo build --workspace` and CI now build eframe for every contributor. #3457 keeps its crate out of the workspace instead. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1719:upstream-pr/1719'
git switch 'upstream-pr/1719'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1719'
git switch 'upstream-pr/1719'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1719'
git switch 'upstream-pr/1719'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1719'
git switch 'main'
git merge --squash 'upstream-pr/1719'
git switch 'main'
git merge --ff-only 'upstream-pr/1719'
git switch 'main'
git merge 'upstream-pr/1719'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1709
No description provided.