[BUNDLE] Series S + copy/hash fixes for 6-8 GB cards: #1081 #798 #258 #24 #1014 #827 #1044 #501 #1054 #1133

Open
github-bot wants to merge 2 commits from github-bot/gh-1133 into main AGit
Owner

@⁠Tresillo2017 on GitHub · 2026-11-25 21:12 UTC · original
Tresillo2017:bundle/series-s-low-vram-perf → main · +2146 −78 · 28 files · 2 commits · open

Nine open PRs applied together on main (085ee7c), each checked against its diff and comments first. No new code: every hunk is from the PR named, by its author. This is a convenience bundle in the style of #1052, not a replacement: if you prefer to take them one by one, close this and merge the originals. Credit and discussion belong on those PRs.

Group PR Author What
Series S #1081 @⁠KyleS98 blend the second present plane over the first (black window)
Series S #798 @⁠KyleS98 the title keeps its own upscaler (black world frames)
Series S #258 @⁠Ortomanic translate the FidelityFX upscaler programs (FSPX images)
Frame time #1014 @⁠martindevbr card compare hashes with a group of 64 threads
Frame time #827 @⁠traidy2222 world-entry crash fix, coalesced refreshes
Frame time #1044 @⁠Key-rs DirectStorage worker pool sized to physical cores
Stability #24 @⁠NuraadGit constant buffer views of at most 64 KiB (device removal)
Stability #501 @⁠Yorivel no blending on integer render targets (refused mesh pipeline)
Stability #1054 @⁠Moon0755 warn once when descriptor slots exceed the host heap

Measured (one machine, one run each)

RTX 2060 6 GB (Turing, wave32), Ryzen 5 3600X (6c/12t, not hybrid), 32 GB RAM, Windows 11. Series S profile, VICTORY_DISPLAY_MODE=1920x1080, with ASYNC_SUBMIT, QUEUE2, INDIRECT_WINDOW, INDIRECT_GATHER, TEXTURE_NO_WAIT, COPY_PLAIN, JOIN_PARTS, BACK_OWN_VIEW, LEVELS_ON_DEMAND set, FPS_COUNTER=0. Shader cache warmed first (translate --warm all, wave 32, view limit 999999).

Tree fps in the world (median of the frame-rate lines) draws dropped per frame
main, Series X (four switch variants, 7-minute runs) 0.7 - 1.1 537 - 783
main + #1081 + #798 + #258 1.4 (21 samples) 287
this bundle 6.4 (29 samples, peak 14.6) 249

No device loss, crash or panic in 7 minutes in the world. The spread between samples is large (1.7 to 14.6) and between runs too: an earlier 11-PR variant of this bundle (with #25 and #1006) measured a median of 3.4 on the same machine, so please read these as indicative, not as a claim about any single PR. The frame is CPU-bound by copies of title memory (63-155 ms preparing, 48-115 ms of it copies; the card was busy 1-24 ms), so this is nowhere near 30 fps.

Left out, and why

  • #911 conflicts with #24 (same descriptor/host.rs area).
  • #25 and #1006 are sound, but they add 5.8 KB and 2.3 KB to emit/lower.rs, which would take it past the 512 KiB asset-policy limit (514,840 bytes on main, 523,001 with this bundle). I did not add an exception to xtask/src/policy.rs; that is the owner's decision. Whoever takes them will need either an exception or a split of lower.rs.

Checks

  • cargo xtask policy: 27 files ok.
  • cargo test --release: victory-shader 100 passed, victory-hle 221 passed, victory-gpu 183 passed.
  • inplace::tests::warp_a_title_buffer_in_place_shows_its_bytes_at_its_offset is flaky on main too: it failed 1 run in 6 on a clean main and 0 in 6 on this tree, and passes when run alone.
  • Not checked: the picture itself (I cannot see the window); 254 shaders still do not translate and about 249 draws a frame are still dropped, so black areas can remain.

AI-assisted (Claude Code). No game data attached.

**@⁠Tresillo2017** on GitHub · 2026-11-25 21:12 UTC · [original](https://github.com/fxceless/victory-fork/pull/1133) `Tresillo2017:bundle/series-s-low-vram-perf` → `main` · +2146 −78 · 28 files · 2 commits · open Nine open PRs applied together on `main` (085ee7c), each checked against its diff and comments first. **No new code: every hunk is from the PR named, by its author.** This is a convenience bundle in the style of #1052, not a replacement: if you prefer to take them one by one, close this and merge the originals. Credit and discussion belong on those PRs. | Group | PR | Author | What | |---|---|---|---| | Series S | #1081 | @⁠KyleS98 | blend the second present plane over the first (black window) | | Series S | #798 | @⁠KyleS98 | the title keeps its own upscaler (black world frames) | | Series S | #258 | @⁠Ortomanic | translate the FidelityFX upscaler programs (FSPX images) | | Frame time | #1014 | @⁠martindevbr | card compare hashes with a group of 64 threads | | Frame time | #827 | @⁠traidy2222 | world-entry crash fix, coalesced refreshes | | Frame time | #1044 | @⁠Key-rs | DirectStorage worker pool sized to physical cores | | Stability | #24 | @⁠NuraadGit | constant buffer views of at most 64 KiB (device removal) | | Stability | #501 | @⁠Yorivel | no blending on integer render targets (refused mesh pipeline) | | Stability | #1054 | @⁠Moon0755 | warn once when descriptor slots exceed the host heap | ## Measured (one machine, one run each) RTX 2060 **6 GB** (Turing, wave32), Ryzen 5 3600X (6c/12t, not hybrid), 32 GB RAM, Windows 11. Series S profile, `VICTORY_DISPLAY_MODE=1920x1080`, with `ASYNC_SUBMIT`, `QUEUE2`, `INDIRECT_WINDOW`, `INDIRECT_GATHER`, `TEXTURE_NO_WAIT`, `COPY_PLAIN`, `JOIN_PARTS`, `BACK_OWN_VIEW`, `LEVELS_ON_DEMAND` set, `FPS_COUNTER=0`. Shader cache warmed first (`translate --warm all`, wave 32, view limit 999999). | Tree | fps in the world (median of the frame-rate lines) | draws dropped per frame | |---|---|---| | `main`, Series X (four switch variants, 7-minute runs) | 0.7 - 1.1 | 537 - 783 | | `main` + #1081 + #798 + #258 | 1.4 (21 samples) | 287 | | **this bundle** | **6.4 (29 samples, peak 14.6)** | **249** | No device loss, crash or panic in 7 minutes in the world. The spread between samples is large (1.7 to 14.6) and between runs too: an earlier 11-PR variant of this bundle (with #25 and #1006) measured a median of 3.4 on the same machine, so please read these as indicative, not as a claim about any single PR. The frame is CPU-bound by copies of title memory (63-155 ms preparing, 48-115 ms of it copies; the card was busy 1-24 ms), so this is nowhere near 30 fps. ## Left out, and why - **#911** conflicts with #24 (same `descriptor/host.rs` area). - **#25 and #1006** are sound, but they add 5.8 KB and 2.3 KB to `emit/lower.rs`, which would take it past the 512 KiB asset-policy limit (514,840 bytes on `main`, 523,001 with this bundle). I did not add an exception to `xtask/src/policy.rs`; that is the owner's decision. Whoever takes them will need either an exception or a split of `lower.rs`. ## Checks - `cargo xtask policy`: 27 files ok. - `cargo test --release`: victory-shader 100 passed, victory-hle 221 passed, victory-gpu 183 passed. - `inplace::tests::warp_a_title_buffer_in_place_shows_its_bytes_at_its_offset` is **flaky on `main` too**: it failed 1 run in 6 on a clean `main` and 0 in 6 on this tree, and passes when run alone. - Not checked: the picture itself (I cannot see the window); 254 shaders still do not translate and about 249 draws a frame are still dropped, so black areas can remain. AI-assisted (Claude Code). No game data attached.
Applies, on top of main (085ee7c), nine open PRs that were each checked
against their diff and comments. Nothing here is new code: every hunk comes
from the PR named, by its author. Credit and discussion stay on those PRs.

Series S mode (black window and black world frames):
- #1081 KyleS98: blend the second present plane over the first
- #798 KyleS98: the title keeps its own upscaler
- #258 Ortomanic: translate the FidelityFX upscaler programs (FSPX images)

Frame time (copies, hashing, streaming):
- #1014 martindevbr: card compare hashes with a group of 64 threads
- #827 traidy2222: world-entry crash fix, coalesced refreshes
- #1044 Key-rs: DirectStorage worker pool sized to physical cores

Stability and picture:
- #24 NuraadGit: constant buffer views of at most 64 KiB (device removal)
- #501 Yorivel: no blending on integer render targets (refused mesh pipeline)
- #1054 Moon0755: warn once when descriptor slots exceed the host heap

Left out on purpose:
- #911 conflicts with #24 (same descriptor/host.rs area).
- #25 and #1006 are sound but add 5.8 KB and 2.3 KB to emit/lower.rs, which
  would take it past the 512 KiB asset-policy limit (514,840 bytes on main).
  No exception was added to xtask/src/policy.rs; that is the owner's call.

Measured on one machine (RTX 2060 6 GB, Ryzen 5 3600X, 32 GB, Series S
profile, 1080p display mode): median 6.4 fps over 29 samples in the world,
peak 14.6, no device loss or crash in 7 minutes. Plain main on the same
machine: 0.7-1.1 fps (Series X). One run each; run-to-run spread is large.
origin/main moved by four commits after the bundle was opened.

- crates/victory-gpu/src/host.rs: one conflict in copy_mapped. #827 adds the
  COPY_MOVED counters and main adds a diagnostics-only backreads::touched
  call at the same spot. They are independent, so both are kept, in that
  order.
- crates/victory-shader/src/emit/lower.rs: main grew it to 517,382 bytes, so
  with #258 it reached 525,543, past the 512 KiB asset-policy limit. The
  self-contained method mask_scc (from #258) moves unchanged into the child
  module emit/lower/mask_scc.rs; lower.rs is 524,036 bytes. No exception was
  added to xtask/src/policy.rs.

Checked: cargo xtask policy ok; release build ok; cargo test --release for
victory-shader (100), victory-hle (220) and victory-gpu (186) all pass.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:58:07 +00:00
Author
Owner

@⁠Tresillo2017 on GitHub · 2026-11-25 21:21 UTC · original

Update after origin/main moved by four commits (up to c36971b): merged in, and the PR is mergeable again. Two things the description above does not say:

  • crates/victory-gpu/src/host.rs, one conflict in copy_mapped. #827 adds the COPY_MOVED counters and main adds a diagnostics-only backreads::touched call at the same spot. They are independent, so both are kept.
  • emit/lower.rs was over the 512 KiB policy limit again (main alone is now 517,382 bytes; with #258 it reached 525,543). I moved #258's self-contained mask_scc method, unchanged, into a child module emit/lower/mask_scc.rs; lower.rs is now 524,036 bytes. The margin is thin (252 bytes), so any other PR that touches lower.rs will need the same treatment or an owner-approved exception in xtask/src/policy.rs. I did not add one.

Re-checked on the merged tree: cargo xtask policy ok, release build ok, cargo test --release: victory-shader 100, victory-hle 220, victory-gpu 186 passed. The measurements in the description were taken before the merge, on the 9-PR tree; the merge only changes what is described above, but I have not re-measured fps on it.

**@⁠Tresillo2017** on GitHub · 2026-11-25 21:21 UTC · [original](https://github.com/fxceless/victory-fork/pull/1133#issuecomment-7174959496) Update after `origin/main` moved by four commits (up to c36971b): merged in, and the PR is mergeable again. Two things the description above does not say: - **`crates/victory-gpu/src/host.rs`, one conflict in `copy_mapped`.** #827 adds the `COPY_MOVED` counters and main adds a diagnostics-only `backreads::touched` call at the same spot. They are independent, so both are kept. - **`emit/lower.rs` was over the 512 KiB policy limit again** (main alone is now 517,382 bytes; with #258 it reached 525,543). I moved #258's self-contained `mask_scc` method, unchanged, into a child module `emit/lower/mask_scc.rs`; `lower.rs` is now 524,036 bytes. The margin is thin (252 bytes), so any other PR that touches `lower.rs` will need the same treatment or an owner-approved exception in `xtask/src/policy.rs`. I did not add one. Re-checked on the merged tree: `cargo xtask policy` ok, release build ok, `cargo test --release`: victory-shader 100, victory-hle 220, victory-gpu 186 passed. The measurements in the description were taken before the merge, on the 9-PR tree; the merge only changes what is described above, but I have not re-measured fps on it.
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-25 22:21 UTC · original

The Series S path reached the first room on an RX 7900 XT, RADV 26.3.1 and Wine 11.22. The host counted 541 presents in 74.19 seconds (7.29 FPS, 4,484 draws/frame). No device loss during the 230-second run. Levels on demand reported tier 4 and 4,476 MB of tile backing avoided by the end. I verified scene progression from the draw counts and haven’t checked the final composite visually.

**@⁠UwUCammie** on GitHub · 2026-11-25 22:21 UTC · [original](https://github.com/fxceless/victory-fork/pull/1133#issuecomment-7176265041) The Series S path reached the first room on an RX 7900 XT, RADV 26.3.1 and Wine 11.22. The host counted 541 presents in 74.19 seconds (7.29 FPS, 4,484 draws/frame). No device loss during the 230-second run. Levels on demand reported tier 4 and 4,476 MB of tile backing avoided by the end. I verified scene progression from the draw counts and haven’t checked the final composite visually.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/descriptor/host.rs
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/lib.rs
  • crates/victory-gpu/src/pipeline.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1133/head:github-bot/gh-1133'
git switch 'github-bot/gh-1133'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1133'
git switch 'github-bot/gh-1133'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1133'
git switch 'github-bot/gh-1133'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1133'
git switch 'main'
git merge --squash 'github-bot/gh-1133'
git switch 'main'
git merge --ff-only 'github-bot/gh-1133'
git switch 'main'
git merge 'github-bot/gh-1133'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.