Repository navigation
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The doctor can issue incorrect readiness verdicts by conflating shader capabilities, requiring an optional validator DLL, mixing data from different GPU adapters, and omitting the required AVX2 check.
4 open issues
What changed in this PR
Adds victory doctor, a diagnostic command that reports host hardware and shader support and estimates world readiness without requiring game data.
Changes:
- Collects OS, CPU, memory, GPU, and validator-path diagnostics.
- Adds readiness verdict logic with five unit tests.
- Exposes GPU capability information and wires the command into the CLI.
| File | Description |
|---|---|
crates/victory-gpu/src/lib.rs |
Exposes host GPU capability information. |
Cargo.lock |
Records new CLI dependencies. |
apps/victory/src/main.rs |
Registers and dispatches the doctor command. |
apps/victory/src/doctor.rs |
Implements diagnostics, readiness verdicts, and tests. |
apps/victory/Cargo.toml |
Adds GPU and Windows API dependencies. |
Review effort: Balanced
| if !mesh { | ||
| return "NOT READY: host lacks mesh shaders / shader model 6.6"; |
| if !dxc { | ||
| return "MENUS ONLY: dxil.dll not found (install the Windows SDK)"; | ||
| } |
| println!(); | ||
| println!( | ||
| "{}", | ||
| verdict(mesh, total as f64 / 1e9, vram_gb, dxc_path.is_some()) |
| if best.as_ref().map(|b| bytes > b.1).unwrap_or(true) { | ||
| best = Some((name, bytes)); |
|
What's the point of this? First of all a "doctor" command should be diagnosing what is wrong, file integrity, other non trival checks. Not just run a plump compat check and exit. That's what a README and eyes are for. And second of all this whole thing is based on hardcoded assumptions that might and probably will be wrong within hours. The separation into "can run menus" and "can run the game" also is useless outside initial debugging. You're just adding extra code that doesn't do anything useful and will be immediately abandoned. |
Reports whether this machine can run the title's world, with no game data required: OS build, CPU (+AVX2), RAM and commit charge, GPU name/VRAM from the runtime adapter, shader model 6.6 and mesh-shader support, and the dxil.dll path (informational). Ends in a verdict (NOT READY / MENUS ONLY / READY). Addresses Copilot review: separate SM6.6 vs mesh-shader checks, dxil.dll informational only, AVX2 requirement, GPU facts from runtime adapter. Verified locally on i7-14700HX + RTX 5060 (16 GB RAM): prints 'MENUS ONLY: world needs ~24 GB of working set'. 7 unit tests for verdict; clippy clean (victory + victory-gpu).
9098534 to
af3d4a4
Compare

Reports whether this machine can run the title's world, with no game data required: OS build, CPU, RAM and commit charge, primary GPU and VRAM, mesh-shader / shader-model 6.6 support, and the dxil.dll path, ending in a verdict (NOT READY / MENUS ONLY / READY). Verified locally on an i7-14700HX