Repository navigation
xcl-gui: a window to run XCL, read its log, edit settings and update - #1719
nikitronick-crypto wants to merge 8 commits into
Conversation
A program of its own that drives xcl.exe from outside: a home page with the game and its Play button, the console and xcl.log followed live (errors and warnings on a page of their own), the title's xcl.toml and the per-run switches, and updating and building XCL with a progress bar. English and Spanish, dark and light themes. Nothing of XCL's runtime is linked or changed. Its tests pass on Windows and Linux; the window builds and opens on Windows. Not yet run with a real title. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TGbT9fA4dEjvKbZH8YDcL2
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Cargo.lock conflicted: main's lock is taken and the packages of xcl-gui are added to it again by cargo. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TGbT9fA4dEjvKbZH8YDcL2
Precompile shaders (Home, under Play, and the XCL page) runs xcl shaders <package> --precompile --only cs --pipelines [--used-only], with a progress bar that says the pipelines built and the time left, and Stop beside it. An update compares the shader translators' files before and after git pull and says when the pass has to be run again. Lines of the console and the logs can be selected (click, Shift+click, drag with scrolling, Ctrl+A) and copied (Ctrl+C, Copy selection); eframe's clipboard feature was missing, so nothing reached the system clipboard. A run stopped from the window no longer reads 'Exited with stopped from this window'. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TGbT9fA4dEjvKbZH8YDcL2
The dark theme takes its colours from assets/readme: night blue to indigo ground, panels of white at a few percent, violet and cyan, the XCL mark drawn as the banner draws it, and the banner's ground behind the game's box on Home. Precompile shaders is on Home only, under Play; the XCL page keeps its choices. A failed git or cargo step ends as its exit code, not as a game's 'XCL could not start the game'. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TGbT9fA4dEjvKbZH8YDcL2
Such a pass may report no shaders at all (they are translated already), so its bar stayed at 'starting'. It names the pipelines it set out to build: the bar follows the pipelines made of that count, with the time left from the speed between their reports. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TGbT9fA4dEjvKbZH8YDcL2
The Settings and XCL pages stand in titled panels like Home's, and the lines of the console and the logs in a box of their own. The theme button goes round three: the project's colours, black (no colour at all) and light; settings from before read as they did. The status dot is drawn (the fonts have none), and warnings are darker on the light theme. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TGbT9fA4dEjvKbZH8YDcL2
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TGbT9fA4dEjvKbZH8YDcL2
A pass that ran to its end is kept in the settings (when, and its own count of shaders compiled, found in the cache and failed, and pipelines built) and said under the button, until an update makes it stale. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TGbT9fA4dEjvKbZH8YDcL2
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
No other PR adds this window. #1500 (a PowerShell developer launcher with env-var presets) and #3457 (a controller game-library menu, AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |






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