Windows compatibility work from TaynanGT/VIctory, merged with main #2756

Closed
TaynanGT wants to merge 467 commits from upstream-pr/2758 into main
TaynanGT commented 2026-11-25 19:49:47 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by TaynanGT on 2026-11-25T19:49:47Z.


The Windows compatibility work from TaynanGT/VIctory, merged with VIctory main at 13f91ca. It reaches the controllable prologue room at about 7 FPS on an RTX 4090 (README, "Local test results"), against about 1 FPS in VIctory's own status.

This is one large change (326 commits, 117 files). If you prefer focused PRs, say which parts you want first and I will open them separately against main, each with its own description and tests, as #2716 already does for XGameSave.

What it changes

  • Shaders (victory-shader): wave64 compute programs on 32-lane hosts (NVIDIA, Intel) as two host waves that exchange through LDS, including groups of several console waves; the ray-tracing node test (image_bvh_intersect_ray) as inline DXIL, with a CPU model it is checked against; scalarised light loops (own_bits), jump threading for uniform diamonds, spilled user-data tables; lowering fixes with tests in emit/*_tests.rs.
  • GPU (victory-gpu): descriptor mirroring for heaps the title writes by address, title memory opened as a host heap (inplace) and direct copies of it, texture upload budgets, indirect-draw clamping, host pipelines built off the render thread, and live switches (VICTORY_LIVE) to compare settings in one session.
  • HLE (victory-hle): XGameSave recovery (the same rules as #2716), DirectStorage page lists, XMA looping, memory mapping and async cancel fixes.
  • Loader (victory-loader): the console CPU's instructions an Intel host lacks (clzero loops among them), emulated in the vectored handler.

Cargo.toml, rust-toolchain.toml, rustfmt.toml, .github/workflows/ci.yml, xtask, docs/ and LICENSE are identical to main. The README is main's, with two sections added: the development PC and the local test results.

Known differences from main

The merge kept the fork's interfaces where both sides changed the same code, so this PR also removes ten files that main has and the fork replaced: victory-gpu/src/{bindless,hold,placement,twin}.rs, victory-shader/src/emit/lower/bvh.rs, and the tests emit/{bvh,memory,semantics,stride,synthetic}_tests.rs. Some of main's GPU changes from the last two days (texture placement, list waits on memory values) are therefore not in this branch yet.

Tests

  • cargo clippy --workspace --all-targets --locked -- -D warnings and the same with --all-features: clean.
  • cargo test --workspace --locked on Windows 11 with an RTX 4090, GPU tests included: 903 passed, 0 failed (at def99cf).
  • cargo xtask policy: all files pass.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:6612447546 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2758). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-25T19:49:47Z. --- The Windows compatibility work from TaynanGT/VIctory, merged with VIctory `main` at `13f91ca`. It reaches the controllable prologue room at about 7 FPS on an RTX 4090 (README, "Local test results"), against about 1 FPS in VIctory's own status. This is one large change (326 commits, 117 files). If you prefer focused PRs, say which parts you want first and I will open them separately against `main`, each with its own description and tests, as #2716 already does for XGameSave. ## What it changes - **Shaders** (`victory-shader`): wave64 compute programs on 32-lane hosts (NVIDIA, Intel) as two host waves that exchange through LDS, including groups of several console waves; the ray-tracing node test (`image_bvh_intersect_ray`) as inline DXIL, with a CPU model it is checked against; scalarised light loops (`own_bits`), jump threading for uniform diamonds, spilled user-data tables; lowering fixes with tests in `emit/*_tests.rs`. - **GPU** (`victory-gpu`): descriptor mirroring for heaps the title writes by address, title memory opened as a host heap (`inplace`) and direct copies of it, texture upload budgets, indirect-draw clamping, host pipelines built off the render thread, and live switches (`VICTORY_LIVE`) to compare settings in one session. - **HLE** (`victory-hle`): XGameSave recovery (the same rules as #2716), DirectStorage page lists, XMA looping, memory mapping and async cancel fixes. - **Loader** (`victory-loader`): the console CPU's instructions an Intel host lacks (`clzero` loops among them), emulated in the vectored handler. `Cargo.toml`, `rust-toolchain.toml`, `rustfmt.toml`, `.github/workflows/ci.yml`, `xtask`, `docs/` and `LICENSE` are identical to `main`. The README is `main`'s, with two sections added: the development PC and the local test results. ## Known differences from `main` The merge kept the fork's interfaces where both sides changed the same code, so this PR also removes ten files that `main` has and the fork replaced: `victory-gpu/src/{bindless,hold,placement,twin}.rs`, `victory-shader/src/emit/lower/bvh.rs`, and the tests `emit/{bvh,memory,semantics,stride,synthetic}_tests.rs`. Some of `main`'s GPU changes from the last two days (texture placement, list waits on memory values) are therefore not in this branch yet. ## Tests - `cargo clippy --workspace --all-targets --locked -- -D warnings` and the same with `--all-features`: clean. - `cargo test --workspace --locked` on Windows 11 with an RTX 4090, GPU tests included: 903 passed, 0 failed (at `def99cf`). - `cargo xtask policy`: all files pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
upstream-sync changed title from [PR #2758] VIctory to [PR #2758] Windows compatibility work from TaynanGT/VIctory, merged with main 2026-11-25 21:02:48 +00:00
kotekompotek commented 2026-11-25 21:03:02 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T20:08:32Z.


+59k/-32k across 117 files is a whole-fork diff, not a reviewable change - same shape as #2643. If this carries real fixes, please split them into focused PRs; as-is nobody can verify what it does.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7173246739 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2758#issuecomment-7173246739). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T20:08:32Z. --- +59k/-32k across 117 files is a whole-fork diff, not a reviewable change - same shape as #2643. If this carries real fixes, please split them into focused PRs; as-is nobody can verify what it does.
NovNovikov commented 2026-11-25 21:03:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by NovNovikov on 2026-11-25T21:00:34Z.


Sadly ground braking changes like this will not be recognized. You should advertize your own fork instead of trying to improve the upstream

<!-- greyfinch-sync:Marvisak/VIctory:comment:7174485106 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2758#issuecomment-7174485106). Originally posted by [NovNovikov](https://github.com/NovNovikov) on 2026-11-25T21:00:34Z. --- Sadly ground braking changes like this will not be recognized. You should advertize your own fork instead of trying to improve the upstream
TaynanGT commented 2026-11-25 22:04:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by TaynanGT on 2026-11-25T21:16:56Z.


Thanks for taking a look, @kotekompotek. That's fair. This PR is too broad to review as a single change. The XGameSave fix is available separately in #2716, with its own regression tests.

Thanks for the suggestion, @NovNovikov. I posted a Vice-Tay update with my test setup, the results for each build, and the rendering issues I still see.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7174863283 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2758#issuecomment-7174863283). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-25T21:16:56Z. --- Thanks for taking a look, @kotekompotek. That's fair. This PR is too broad to review as a single change. The XGameSave fix is available separately in [#2716](https://github.com/Marvisak/VIctory/pull/2716), with its own regression tests. Thanks for the suggestion, @NovNovikov. I posted a [Vice-Tay update](https://github.com/TaynanGT/Vice-Tay/discussions/17) with my test setup, the results for each build, and the rendering issues I still see.
Marvisak commented 2026-11-26 00:03:21 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T23:14:55Z.


Automated triage for the maintainers.

Needs rebase. This pull request conflicts with main (conflicting: 32 files, among them README.md, crates/victory-gpu/src/resource.rs and crates/victory-shader/src/emit/lower.rs). It will be reviewed once it is rebased onto the current main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7177311821 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2758#issuecomment-7177311821). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T23:14:55Z. --- <!-- victory-triage v1 head=79cc404d270aa898e0f827df25821a14087aee95 verdict=needs-rebase at=2026-11-26T01:14:34Z --> Automated triage for the maintainers. **Needs rebase.** This pull request conflicts with `main` (conflicting: 32 files, among them `README.md`, `crates/victory-gpu/src/resource.rs` and `crates/victory-shader/src/emit/lower.rs`). It will be reviewed once it is rebased onto the current `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
upstream-sync closed this pull request 2026-11-26 09:05:22 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!2756
No description provided.