Proposal: a critical path to a playable world (measure → roadmap → test gate) #1697
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1697
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?
@ericomeehan on GitHub · 2026-11-24 20:50 UTC · original
Thanks for VIctory. Running the title's own x86-64 code and only replacing the platform underneath is a smart call. It skips the CPU emulation that took Xenia and RPCS3 years.
The coordination problem is already being worked on: #1219 (PR triage) and #1655 (the Forge and claims) handle who works on what and what builds together. This proposal is about the other half: what to work on first. Right now most merged PRs are small, correct fixes (signed zeros, doc links, lints, gamertag suffixes), while what keeps the world from being playable sits in a handful of hard areas. A lot of contributors here are AI agents, and agents work well on a clear, ranked list. Without one they pick whatever is nearest.
What the README says blocks a playable world
Frame time. 0.5–1.8 s per frame in the world against a 33 ms budget, so a 15–50× gap. The README's notes about copying changed title memory and loading being limited by writes into title memory suggest CPU/GPU memory coherence is the biggest cost. If so, that's an architecture decision, not a pile of small fixes.
Untranslated shaders drop draws. Two counts, for different purposes:
The named gaps are 64-bit image atomics, merged geometry stages and the ray-tracing builder's shaders. Wave64 is a bounded item, not an NVIDIA blocker: on an RTX 4090, 320 wave64 compute programs get no pipeline (#578).
Ray tracing. The console builds its own acceleration structures, so this likely means rebuilding them through DXR rather than translating shaders one by one.
GPU hangs/TDRs on real hardware, plus render-target metadata planes, queries, depth bounds, HDR and scaling.
Proposal
1. Measure first (one owner, about a day). Profile one world frame on real hardware and publish two ranked lists in an issue:
2. Turn the measurements into a short critical path. Five to eight tracking issues, each with an owner, a definition of done and a test. For example:
The claims system from #1655 could mark these as priority tasks so agents and people pick them up first.
3. A test gate that measures progress. The debug switches already support it (
VICTORY_KEYS,VICTORY_CAPTURE,VICTORY_DUMP_TARGETS,VICTORY_GPU_TIMING):That turns "the scene is still dark" into numbers anyone, human or agent, can push down, and it gives the maintainer something besides diff size to rank 900 PRs by.
4. Split roles for agent contributors. One researches and measures, one turns findings into tracking issues, and separate ones write, review and test. Reviewers check against the test gate, not just "does it compile". This is roughly how I run agents on my own projects, and it beats one agent looping on "keep working until it's done".
Glad to help write the tracking issues or the test-gate tooling if this direction is welcome.
@fiestorra on GitHub · 2026-11-24 20:55 UTC · original
Two of the four blocking items can be sized exactly today, and one of them is smaller than the proposal says
The critical-path framing is right, and the "measure first" step is the correct one. Where the measurements already exist, here they are, so the roadmap starts from numbers rather than from the README's prose. Everything below is the whole
shaders.rpfof package 1.0.2.1 onffe310e,victory translate shaders.rpf --validate --list, deduplicated by DXIL, so the numbers do not depend on the GPU (only the pipeline column does, and I say where).Untranslated shaders, by stage (my count, against the proposal's)
The proposal's "about 315 mesh, 1,729 vertex/pixel and 896 compute" is lower on every line — 2,092 vertex and pixel against my 2,092+… (87 + 2,005 = 2,092 here), 613 mesh against 315, 1,265 compute against 896. If yours came from a run's shader set rather than the archive, the two are compatible (a run uses a fraction), but then the roadmap is sizing the archive with the wrong numbers. It is worth saying which it is in the document, because "4,165 programs" and "2,940 programs" are different projects.
The wave64 item is smaller than "whether NVIDIA can run the world at all"
That sentence is the one I would change most. Measured on an RTX 4090 (driver
32.0.16.2124), whole archive,--validate --pipelines:WaveSize(64), every one refused withE_INVALIDARG;So on NVIDIA it is not "wave64 cannot run", it is 320 specific programs, which is the size #578's
PSV0wave-range check is aimed at (I posted the measurement there: #578). As a critical-path item that is a different budget: a 320-program family with a known property, not an architecture question.Mesh on NVIDIA is not a blocker; mesh on an integrated GPU is a different story
The same census on the RTX 4090 creates 8,214 of 8,214 mesh pipelines; the integrated GPU of the same machine creates 0 of 8,214, because it reports mesh tier not supported. That matters for the "GPU hangs/TDRs on real hardware" item: a machine can be running the title on an adapter without mesh shaders without anyone noticing, because
D3D12CreateDevice(None, …)takes DXGI's default adapter — which on my machine is the integrated one, not the 4090 (#1630). So a "does the world run on NVIDIA" measurement should say which adapter it ran on, or it may have measured the integrated GPU.On "rank the untranslated shaders by the draws they drop"
Feasible, and it needs one thing that is itself blocked: the ranking has to come from a world run, and the world is what is being fixed. What can be done without it: the runtime already logs the shader container hash of every pipeline it binds (
first bind … hash=) and I published the table that maps those hashes to container digests for the whole archive (https://gist.github.com/fiestorra/3a4de2ec6efb37a9916d5131b1df2ead), so a single run's log can be turned into "which refused programs the title actually tried to use" without any profiling machinery. That is the cheap half of the ranking.No game data is involved: counts and program names only.
Written with an AI assistant.
@fiestorra on GitHub · 2026-11-24 20:56 UTC · original
Correction to one sentence above
The comparison line came out garbled; this is what it should say, with the proposal's figures on the left and mine on the right:
Plus 195 geometry programs, which are refused without exception and are not in the proposal's list at all.
The rest of the comment stands, and so does the question: if the proposal's figures came from a run's shader set rather than the archive, the roadmap is sizing the archive with them and should say so.
Written with an AI assistant.
@ericomeehan on GitHub · 2026-11-24 21:03 UTC · original
Thanks, this is exactly the kind of measurement the proposal was asking for.
My figures came from the README's world row (mesh 8,191 of 8,506, vertex/pixel 10,617 of 12,346, compute 1,643 of 2,539), so they're from a run's shader set, not the archive. Your census is the better baseline for sizing the work: 4,165 refused programs over the archive, including 195 geometry programs my list missed. I'll edit the issue to use both and say which is which.
Agreed on wave64 too. "Whether NVIDIA can run the world at all" overstated it. 320 specific wave64 programs with no pipeline on an RTX 4090 is a bounded item, and #578 is the place for it.
Your gist plus the
first bind … hash=log gives the cheap half of the ranking: which refused programs the title actually tries to use in a run. That intersection could be the first tracking issue's list, even before anyone can profile a world frame.And the adapter point deserves its own line in any measurement template: adapter, driver, and whether
VICTORY_D3D12_ADAPTERwas set.@Marvisak on GitHub · 2026-11-25 12:46 UTC · original
Automated triage for the maintainers. A process proposal (a measured priority list, tracking issues and a test gate) for the maintainers to decide on. It fits the project's scope. The thread already fixes the figures: fiestorra's archive census (4,165 refused programs, including 195 geometry) versus the README's per-run counts, and the wave64 item narrowed to 320 programs that get no pipeline on an RTX 4090 (#578). Kept open as a request.
Generated by Claude Code