xcl-gui: a window to run XCL, read its log, edit settings and update #1709
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1719"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.logas they grow, edit the title'sxcl.toml, and precompile the game's shaders. It is a program of its own (crates/xcl-gui) that runsxcl run <game>andxcl shaders … --precompilefrom outside: nothing of XCL's runtime is linked or changed, and no existing file is touched except the workspace's member list andCargo.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.tomledits 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 testscrates/xcl-gui/src/runner.rs: starting a program, its output line by line, following a log file, stopping it with what it started, with testscrates/xcl-gui/src/main.rs: the window (egui): home page, console, log, errors, settings, and an XCL page that runsgit pullandcargo build -p xclwith a progress barcrates/xcl-gui/README.md,Cargo.toml(new workspace member),Cargo.lockNew since the first push:
xcl shaders <package> --precompile --pipelines [--used-only](--only csby 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 aftergit pulland says when the pass has to be run again.eframe'sclipboardfeature was missing, so nothing reached the system clipboard before.assets/readme(the default), black, and light.mainis merged in, which resolves theCargo.lockconflict.Tested
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 ofxcl-guiare among them.gpu::recomp::lower,lower_dxilandgpu::recomp::tests, among themgpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware); 3 "wave32, per-lane form: refused" (f16_programs_on_the_gputwice,f32_programs_on_the_gpuonce);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 opened32087fa: 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 andxcl.logfollowed live, Stop, the title's settings page on its realxcl.toml, update and buildxcl.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 clipboardRegression 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.tomlandCargo.lock), so the difference between the two is run-to-run variation, not an effect of this change.main:
PR:
Not tested
--used-onlyunticked (every compute pipeline) from the windoweframe/rfd(and nowarboard, for the clipboard) against GPL-2.0-only (the direct dependencies are MIT or MIT / Apache-2.0)AI use
🤖 Generated with Claude Code
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!
Imported from ivall/xcl. Originally posted by nikitronick-crypto on 2026-11-25T14:42:07Z.
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
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
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:34:43Z.
Triage (#1607) – head
6fa6d6fNo 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 forxcl run. They take different approaches, and the maintainer has to decide which, if any, belongs in the tree.At about 3200 lines without
Cargo.lockit is far over the size target. The description already offers to split it into stacked PRs.It makes
crates/xcl-guia workspace member, socargo build --workspaceand 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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.