Add a victory doctor command to check a PC before a run #285
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#285
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@D4rkGh057 on GitHub · 2026-11-26 18:55 UTC · original
Problem
The README says the project was tested on one PC. When a run goes wrong on
another machine, a report has no hardware facts: which GPU, whether it has
shader model 6.6, mesh shaders, or
OpenExistingHeapFromAddress1. Several ofthese are hard requirements (
probe_view_limit,Host::mesh_shaders,inplace.rs), and when one is missing the run fails late or just runs slower.Proposal
A read-only subcommand,
victory doctor [<exe>], that prints one line percheck and exits non-zero if a required check fails:
run.rsalready checks it at run time).OpenExistingHeapFromAddress1on committed private memory (required).victory_game::KNOWN_BUILDS(a warning while that list is empty).
Example on an RX 9060 XT:
Reports could then paste this output, and an issue template could ask for it.
Patch
I have a patch against
2de9980(about 350 lines, Windows only likewarm):apps/victory/src/doctor.rs(new) and the subcommand inmain.rs.victory_shader::emit::host::gpu_report(), next tocreate_preferred_device,so the app needs no direct
windowsdependency.windows-sysgets theWin32_System_Memoryfeature invictory-shader.checks need real hardware, so CI would only cover the logic.
git apply --checkpasses on2de9980, andcargo test -p victory doctorpasses. I can open a PR if you want it.
Not covered
match, so I left it out.
victory-doctor.zip
victory configprints "POLICY VIOLATION" and still exits 0 #301@mutlusinan on GitHub · 2026-11-26 20:15 UTC · original
A reference for this: stellarr-studio/kelvaroq's launcher already does most of what a
victory doctorwould check, and picks engine settings from the result.VICTORY_TEXTURE_STAGE_MB64/128/192,VICTORY_CARD_BUFFERS_MB256/512/1024 andVICTORY_QUEUE2_LANDING_MB32/64/96 for <10 GiB, ≥10 GiB VRAM + 16 GiB RAM, and ≥16 GiB VRAM + 32 GiB RAM.VICTORY_WIDE_THREADSis set to half the physical cores, between 1 and 12.Code:
src/hardware.rsandsrc/launcher/Hardware.cs(GPL-3.0; one function inhardware.rs, the shader-support and wave-width query, is marked "Approach after XCL 8ba374c", and XCL is GPL-2.0-only, so take the checks as a list rather than the code). Their README, "Hardware profiles", has the table. Their switch names partly differ from this fork's, so the thresholds are a starting point rather than something to copy. #268 (victory system) covers the reporting half.Two things a doctor here could add on top, from this repo's own issues:
-Fsr4Kis asked for on a GPU without an FSR 4.1.2 provider (#323);@D4rkGh057 on GitHub · 2026-11-26 20:22 UTC · original
Thanks for the reference and for the license note. Taking the list of checks rather than the code makes sense.
On the two extra warnings:
doctoralready builds.doctorwould need a read-only probe that loads the DLL, queries it and releases it, and it should only run when-Fsr4Korfidelityfx_diris set. That could be a follow-up.One correction: #9 is about the wave64 gap on an RTX 5060, not the view heap, so it does not apply to the cap warning. #15 is the right reference.