Skip to content

Document the Arch MSVC build and Proton rendering on an RTX 4080 - #532

Closed
NiHuShu wants to merge 2 commits into
Marvisak:mainfrom
NiHuShu:docs/arch-proton-rendering-report
Closed

NiHuShu wants to merge 2 commits into
Marvisak:mainfrom
NiHuShu:docs/arch-proton-rendering-report

Conversation

@NiHuShu

@NiHuShu NiHuShu commented Nov 24, 2026

Copy link
Copy Markdown

This records a CachyOS x86-64 test of d2a4bae using the Windows MSVC target, Proton Experimental and an RTX 4080 (driver 620.70.06). It complements #149 and #191 with the DLL selection and rendering results from a real-device run.

What worked

  • The official Rust 1.98.1 compiler and matching host and Windows standard libraries built the release launcher with cargo-xwin 0.24.1 and the repository lockfile. Mixing the Arch compiler with the official Windows target had failed with E0514. The resulting PE32+ x86-64 executable used a 365 MiB build directory and a separate 642 MiB SDK/CRT cache.
  • System Wine 11.21 started the CLI and resolved the configured game directory. A standalone D3D12 probe failed at feature level 12.0 with 0x80070057, consistent with the white window and zero host draws.
  • With Proton Experimental and WINEDLLOVERRIDES='d3d12,d3d12core,dxgi=n', the loader trace identified the three native DLLs. The same probe passed device, queue, fence, event and descriptor-heap creation. The title then rendered through loading.

Where it stopped

When the first world mesh and compute pipelines appeared, two compute pipelines were refused. The kernel logged NVIDIA Xid 13 (GPU MMU fault) for the title process. The title subsequently recorded a null write. The logs establish the sequence but do not identify the faulting GPU command. World gameplay remains unverified.

Checks

The two-file diff passes the repository asset policy (152 files), git diff --check and Bash syntax checks for the examples. The guide adapts the tested steps to portable paths and a rustup-managed toolchain.

@mercuryVM mercuryVM 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.

Read only, not built: documentation only (README pointer plus docs/arch-proton-rendering.md).

  • The build steps use only rustup, crates.io (cargo install --locked cargo-xwin) and the Steam Linux Runtime. There are no download-and-run scripts, which is good for a doc others will copy.
  • The results tables cite title-specific image offsets for the breakpoints seen (+0x… values in the "Later world runs" and "Latest startup failure" rows). The README asks reports not to carry title data. Offsets are on the line, but maintainers may prefer "a title breakpoint during mission streaming" without the address, since the offset isn't actionable without the title anyway.
  • Much of the page records a single machine's results (driver version, CachyOS, Proton Experimental at a date). Consider marking it as a dated test report, or folding the reusable part (the cargo-xwin build and the DLL selection) into the existing Linux/Proton section, so it doesn't read as current guidance after the next driver or Proton change.

AI-assisted (Claude Code).

@geiyiliyabumo

Copy link
Copy Markdown
Contributor

Independent review on Windows 11 x64 / MSVC (merged PR head aa50c7d into current main; reviewed the full origin/main..HEAD diff - docs only: README.md + new docs/arch-proton-rendering.md).

Docs-only, so no clippy/test run; the Arch/cargo-xwin build commands are Linux-only and were NOT executed on this host - inspected for syntax/consistency only.

Verified:

  • cargo run --locked -p xtask -- policy -> "asset policy: 155 files ok". Rule Possible Fixes #1 clean: no game files, no binary/NUL, no long hex/base64 runs; the doc uses path placeholders, keeps captures local-only, and says "Keep the game files outside the checkout".
  • Links: README -> docs/arch-proton-rendering.md resolves; ../README.md#status-2026-11-23 matches the "## Status (2026-11-23)" heading; /pulls is this repo's own PR list. Fetched the cargo-xwin README: its H1 (#cargo-xwin) sits right above the Microsoft license consent notice, so that link is accurate (the repo's own ## License section is MIT, not Microsoft's - the top anchor is the correct target).
  • Commands/claims checked against the tree: VICTORY_CONFIG / VICTORY_GAME_DIR / VICTORY_CACHE_DIR / VICTORY_DATA_DIR / VICTORY_TEST_TITLES exist in crates/victory-core/src/config.rs; [paths].game_dir is the correct key in victory.example.toml; XWIN_ARCH / XWIN_CACHE_DIR, cargo xwin build and cargo install --locked cargo-xwin match upstream cargo-xwin. d2a4bae is a real commit and an ancestor of current main.

Non-blocking observations:

No blocking issues - useful, careful write-up.

AI-assisted; synthetic tests only, no game files.

@Headache3318

Copy link
Copy Markdown

From the 3x RTX 4090 Arch box: the 12.0 0x80070057 is root-caused — CheckFeatureSupport gives MaxSupported=0xb100 and TiledResourcesTier=0 (FL_12_0 requires Tiled-Resources Tier 1), identical on Proton Experimental and GE-Proton 11-14; call shape/SDK-configuration is irrelevant (30+ probe variants byte-identical). A proxy d3d12.dll clamping ≥0xc000→0xb100 yields a working device and the first real host execution (drawn==draws, 159,744 draws + 4,096 dispatches, 29 first translations, Xid 0); in-tree fix candidates are the hardcoded D3D_FEATURE_LEVEL_12_0 sites crates/victory-gpu/src/host.rs:181,184 + crates/victory-shader/src/emit/host.rs:76,78. Full report: #49 (comment). AI-assisted, Arch Linux, NOT native Windows.

@Marvisak

Copy link
Copy Markdown
Owner

Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current).

A 156-line report of one Arch Linux cross-build and Proton run, added as a doc and linked from the README (the doc links back to a README status anchor that no longer exists). A hardware report belongs in an issue; Linux/Proton is not a target and long docs stay out of the repo.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

@Marvisak Marvisak closed this Nov 25, 2026
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.

5 participants