Skip to content

Add 'victory doctor' command - #183

Open
AndradeTK wants to merge 1 commit into
fxceless:mainfrom
AndradeTK:feat/doctor-command
Open

AndradeTK wants to merge 1 commit into
fxceless:mainfrom
AndradeTK:feat/doctor-command

Conversation

@AndradeTK

Copy link
Copy Markdown

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

  • RTX 5060 (16 GB RAM): prints 'MENUS ONLY: world needs ~24 GB of working set'. Includes 5 unit tests for the verdict logic; clippy clean.

Copilot AI balanced review requested due to automatic review settings November 24, 2026 22:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread apps/victory/src/doctor.rs Outdated
Comment on lines +12 to +13
if !mesh {
return "NOT READY: host lacks mesh shaders / shader model 6.6";
Comment thread apps/victory/src/doctor.rs Outdated
Comment on lines +21 to +23
if !dxc {
return "MENUS ONLY: dxil.dll not found (install the Windows SDK)";
}
Comment thread apps/victory/src/doctor.rs Outdated
println!();
println!(
"{}",
verdict(mesh, total as f64 / 1e9, vram_gb, dxc_path.is_some())
Comment thread apps/victory/src/doctor.rs Outdated
Comment on lines +143 to +144
if best.as_ref().map(|b| bytes > b.1).unwrap_or(true) {
best = Some((name, bytes));
@Izumemori

Copy link
Copy Markdown

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.

RicerBoy added a commit to RicerBoy/DropItLikeItsHot that referenced this pull request Nov 24, 2026
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants