feat: Series S support, fast FSR4 bypass, ambient floor, and 6GB VRAM texture fixes #1296

Open
github-bot wants to merge 1 commit from github-bot/gh-1296 into main AGit
Owner

@⁠matthew565656 on GitHub · 2026-11-26 12:11 UTC · original
matthew565656:series-s-6gb → main · +1964 −85 · 23 files · 1 commits · open

Experimental --console series-s and 6 GB VRAM improvements tested on Windows with an NVIDIA RTX 2060 6 GB (1920x1080
presentation, 960x540 internal DRS):

- **Series S shader & Wave32 translation** (`crates/victory-shader/`): Wave32 lowering, VALU/wave op fixes, and resource
binding fixes needed for `--console series-s` gameplay rendering.
- **Fast FSR4 bilinear bypass** (`VICTORY_FAST_FSR4=1`, auto-enabled with `VICTORY_FAST_COMPUTE=1`,
`crates/victory-gpu/src/fsr4.rs`): skips intermediate `ACCC`/`FSPX` neural-network upscaler passes (~385 ms/frame on RTX
2060) and replaces the final postpass with a bilinear compute upscale honoring active DRS `renderSize` with border
clamping.
- **Heavy compute throttling & RT-prep skip** (`VICTORY_FAST_COMPUTE=1`, `crates/victory-gpu/src/draw.rs`): throttles
non-essential heavy compute passes and skips unused ray-tracing prep dispatches when `VICTORY_BVH_HOLD=1`.
- **Indirect-diffuse ambient floor** (`VICTORY_AMBIENT=<level|off>`, default `0.6`, `crates/victory-gpu/src/ambient.rs`):
fills uninitialized screen-probe diffuse resolve output so shadowed areas remain visible while ray tracing is held.
- **6 GB VRAM & Series S texture-room fixes** (`crates/victory-gpu/src/resource.rs`, `tiles.rs`, `descriptor/host.rs`):
  - Sets `default_targets_room` to `1024 MiB` on `Console::SeriesS` (keeping Series X defaults unchanged).
  - Subtracts already-allocated free pool tiles (`tiles::free_total()`) in `resource::room()` and allows `Tiled::uploaded`
  to map into existing free pool tiles (`fits_in_pool`).
  - Caps on-demand mip allocations on `< 7 GiB` GPUs via `VICTORY_LEVELS_MAX_TILES` (default `4` tiles = `256 KiB`/mip; `0`
  = uncapped) with smallest-held fallback so textures never render black.
  - Prevents retry-backlog starvation of fresh texture slots in `TextureQueue`.

## Validation Performed

- `cargo build --locked --release -p victory` and `cargo build --locked --profile diag --features diagnostics -p victory`:
passed.
- `cargo run --locked -p xtask -- policy`: `asset policy: 185 files ok`.
- Targeted unit tests passed:
  - `victory-gpu`: `fsr4` (5/5), `cap_held_drops_oversized_mips_and_keeps_smallest_fallback` (1/1),
  `vram_room_defaults_scale_for_smaller_cards` (1/1), `draw::tests` (2/2).
- Visual verification on `--console series-s` (`diag` frame captures): prison cell walls, metal door frame, Lucia
(skin/hair/shirt), and courtyard props render textured and lit (`0` texture-room refusals).
- Stability test on `--console series-s` (`diag` + `VICTORY_D3D12_DRED=1`, `VICTORY_INDIRECT_WINDOW=0`, static scene): ran
382.9s (~6.4 min) with `0` driver errors and `2.3–2.8 fps`.

## Known Issues / Limitations

- **Merge conflict**: based on `085ee7c`; needs rebasing onto latest `fxceless/victory-fork:main` (mainly `README.md` and
any overlapping GPU changes).
- **Intermittent GPU device removal (`nvlddmkm` Event 153 / `0x887A0006`)**: still reproduces during extended interactive
gameplay on RTX 2060 6 GB (DRED breadcrumb capture during interactive play is still needed).
- **Not tested**: `--console series-x` live run after the latest `tiles.rs`/`resource.rs` changes, and full workspace
`cargo test`.
**@⁠matthew565656** on GitHub · 2026-11-26 12:11 UTC · [original](https://github.com/fxceless/victory-fork/pull/1296) `matthew565656:series-s-6gb` → `main` · +1964 −85 · 23 files · 1 commits · open Experimental `--console series-s` and 6 GB VRAM improvements tested on Windows with an NVIDIA RTX 2060 6 GB (`1920x1080` presentation, `960x540` internal DRS): - **Series S shader & Wave32 translation** (`crates/victory-shader/`): Wave32 lowering, VALU/wave op fixes, and resource binding fixes needed for `--console series-s` gameplay rendering. - **Fast FSR4 bilinear bypass** (`VICTORY_FAST_FSR4=1`, auto-enabled with `VICTORY_FAST_COMPUTE=1`, `crates/victory-gpu/src/fsr4.rs`): skips intermediate `ACCC`/`FSPX` neural-network upscaler passes (~385 ms/frame on RTX 2060) and replaces the final postpass with a bilinear compute upscale honoring active DRS `renderSize` with border clamping. - **Heavy compute throttling & RT-prep skip** (`VICTORY_FAST_COMPUTE=1`, `crates/victory-gpu/src/draw.rs`): throttles non-essential heavy compute passes and skips unused ray-tracing prep dispatches when `VICTORY_BVH_HOLD=1`. - **Indirect-diffuse ambient floor** (`VICTORY_AMBIENT=<level|off>`, default `0.6`, `crates/victory-gpu/src/ambient.rs`): fills uninitialized screen-probe diffuse resolve output so shadowed areas remain visible while ray tracing is held. - **6 GB VRAM & Series S texture-room fixes** (`crates/victory-gpu/src/resource.rs`, `tiles.rs`, `descriptor/host.rs`): - Sets `default_targets_room` to `1024 MiB` on `Console::SeriesS` (keeping Series X defaults unchanged). - Subtracts already-allocated free pool tiles (`tiles::free_total()`) in `resource::room()` and allows `Tiled::uploaded` to map into existing free pool tiles (`fits_in_pool`). - Caps on-demand mip allocations on `< 7 GiB` GPUs via `VICTORY_LEVELS_MAX_TILES` (default `4` tiles = `256 KiB`/mip; `0` = uncapped) with smallest-held fallback so textures never render black. - Prevents retry-backlog starvation of fresh texture slots in `TextureQueue`. ## Validation Performed - `cargo build --locked --release -p victory` and `cargo build --locked --profile diag --features diagnostics -p victory`: passed. - `cargo run --locked -p xtask -- policy`: `asset policy: 185 files ok`. - Targeted unit tests passed: - `victory-gpu`: `fsr4` (5/5), `cap_held_drops_oversized_mips_and_keeps_smallest_fallback` (1/1), `vram_room_defaults_scale_for_smaller_cards` (1/1), `draw::tests` (2/2). - Visual verification on `--console series-s` (`diag` frame captures): prison cell walls, metal door frame, Lucia (skin/hair/shirt), and courtyard props render textured and lit (`0` texture-room refusals). - Stability test on `--console series-s` (`diag` + `VICTORY_D3D12_DRED=1`, `VICTORY_INDIRECT_WINDOW=0`, static scene): ran 382.9s (~6.4 min) with `0` driver errors and `2.3–2.8 fps`. ## Known Issues / Limitations - **Merge conflict**: based on `085ee7c`; needs rebasing onto latest `fxceless/victory-fork:main` (mainly `README.md` and any overlapping GPU changes). - **Intermittent GPU device removal (`nvlddmkm` Event 153 / `0x887A0006`)**: still reproduces during extended interactive gameplay on RTX 2060 6 GB (DRED breadcrumb capture during interactive play is still needed). - **Not tested**: `--console series-x` live run after the latest `tiles.rs`/`resource.rs` changes, and full workspace `cargo test`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 12:14:58 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/descriptor/host.rs
  • crates/victory-gpu/src/draw.rs
  • crates/victory-gpu/src/lib.rs
  • crates/victory-gpu/src/resource.rs
  • crates/victory-shader/src/emit/valu_tests.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/1296/head:github-bot/gh-1296'
git switch 'github-bot/gh-1296'

Merge

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