xcl-gui: a window to run XCL, read its log, edit settings and update #1719
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1719
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@nikitronick-crypto on GitHub · 2026-11-24 19:46 UTC · original
nikitronick-crypto:xcl-gui→main· +6076 −156 · 7 files · 8 commits · openA 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
The pass ran with --only cs, so a title still compiled its vertex and pixel shaders itself, on a black screen ('compiling shaders: N running' in its window's title). --only cs is now left out unless a switch on the XCL page asks for compute alone; --used-only goes on choosing the compute pipelines built. The bar follows the pipelines only in a pass of compute alone. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01TGbT9fA4dEjvKbZH8YDcL2@DavidM1911 on GitHub · 2026-11-24 22:28 UTC · original
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 on GitHub · 2026-11-25 14:42 UTC · original
@DavidM1911 on GitHub · 2026-11-26 06:17 UTC · original
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
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.