Fading trees fix, and PC FSR 4 actually turning on for Series X #2248

Manually merged
github merged 3 commits from github-bot/gh-2248 into main 2026-11-30 14:14:25 +00:00 AGit
Owner

@⁠RB-404 on GitHub · 2026-11-29 11:02 UTC · original
RB-404:port/trees-and-fsr4-upscale → main · +139 −17 · 4 files · 3 commits · merged 2026-11-30 14:12 UTC

Two fixes, tested on an RX 9070 XT (Series X profile, 1440p).

Trees, bins and nearby objects fading in and out
The raw copies of a command list's dynamic views that don't start on a 16-byte boundary were left empty, about 870 a frame in the world, including the tree culling's batch lists. Shaders read zeros through them. They're now moved into place like the staged ones already were. The empty count goes from about 870 to 0 and the fading is gone. Ported from RB-404/VIctory-NVIDIA-AMD 1c07606b, with its tests.

VICTORY_PC_FSR=1 did nothing on Series X
When the PRs were combined, the PC upscaler's Series X path was routed through upscaler_mode(), which only checks for DLSS. Without DLSS it turned the title's FidelityFX path off, so no PC upscaler context was ever made. The PC upscaler now counts like DLSS in that check, as c2717306 originally had it.
PC FidelityFX upscaler created now also logs provider=, the FSR version AMD's DLL picked.
Result: provider="4.1.2", 1706x960 upscaled to 2560x1440.

Tests: the descriptor tests in victory-gpu, the FidelityFX tests in victory-hle and the upscaler_mode tests in victory all pass. The workspace clippy gate currently fails on main itself, in victory-shader (lower/analysis.rs, unused imports), which this PR doesn't touch.

🤖 Generated with Claude Code

**@⁠RB-404** on GitHub · 2026-11-29 11:02 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248) `RB-404:port/trees-and-fsr4-upscale` → `main` · +139 −17 · 4 files · 3 commits · merged 2026-11-30 14:12 UTC Two fixes, tested on an RX 9070 XT (Series X profile, 1440p). **Trees, bins and nearby objects fading in and out** The raw copies of a command list's dynamic views that don't start on a 16-byte boundary were left empty, about 870 a frame in the world, including the tree culling's batch lists. Shaders read zeros through them. They're now moved into place like the staged ones already were. The empty count goes from about 870 to 0 and the fading is gone. Ported from RB-404/VIctory-NVIDIA-AMD 1c07606b, with its tests. **`VICTORY_PC_FSR=1` did nothing on Series X** When the PRs were combined, the PC upscaler's Series X path was routed through `upscaler_mode()`, which only checks for DLSS. Without DLSS it turned the title's FidelityFX path off, so no PC upscaler context was ever made. The PC upscaler now counts like DLSS in that check, as c2717306 originally had it. `PC FidelityFX upscaler created` now also logs `provider=`, the FSR version AMD's DLL picked. Result: `provider="4.1.2"`, 1706x960 upscaled to 2560x1440. Tests: the descriptor tests in victory-gpu, the FidelityFX tests in victory-hle and the `upscaler_mode` tests in victory all pass. The workspace clippy gate currently fails on main itself, in victory-shader (`lower/analysis.rs`, unused imports), which this PR doesn't touch. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A raw view must begin on 16 bytes, so a buffer view's raw twin that begins
between two multiples of 16 is made from the multiple below and moved on
in its descriptor (move_raw). That was only done where the twin was made
in the staged slot. Twins of a list's dynamic views are made in the list
views' own heap (ListViews), which the card does not see either, and every
unaligned one there was left null: about 870 a frame in the world on an
RX 9070 XT, among them the tree culling's batch lists. Shaders read zeros
through them, and trees, bins and other objects near the camera faded out
and in while it moved (trustno1-coder/VIctory-NVIDIA#1165).

beside() now takes this thread's list view slots as well as its staged
twin slot. In the world the frame line's "(N null)" went from about 870
to 0.0, at the same frame rate, and the fading is gone.

Tests: a list view slot may be moved and slots past it may not; an
unaligned twin in a list view slot is moved on a card whose descriptors
move_raw knows (both pass on the RX 9070 XT, as do the 456 tests of
victory-gpu).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 1c07606b8765d329e15af3a20bbd17f859159be7)
With VICTORY_PC_FSR=1 and DLSS off on Series X, upscaler_mode was given
available.dlss alone and took its "no DLSS on Series X" arm, so the title's
FidelityFX path was left out and no PC upscaler context was ever made: the
upscaler DLL loaded ("PC FidelityFX upscaling available count=3") and nothing
followed. AwkGrep256's c2717306 kept the path for pc_mode; the combine routed
it through upscaler_mode, which only knew DLSS. The PC upscaler now counts as
DLSS there.

"PC FidelityFX upscaler created" also carries provider=, the version AMD's
DLL chose (ffxQueryGetProviderVersion), the only place that says whether it
is FSR 4 or FSR 3.1 (from RB-404/VIctory-NVIDIA-AMD 0061fa29).

RX 9070 XT, Series X, 1440p, 2026-11-29: provider="4.1.2", 1706x960 to
2560x1440, host upscales recorded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 11:06:35 +00:00
Author
Owner

@⁠RB-404 on GitHub · 2026-11-29 11:06 UTC · original

Will probably have to add AMD upscaler SHA-256 to "get-amd-fsr.ps1"

**@⁠RB-404** on GitHub · 2026-11-29 11:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248#issuecomment-7254881191) Will probably have to add AMD upscaler SHA-256 to "get-amd-fsr.ps1"
play-foxhound.ps1 knew auto, dlss and fsr only: FSR 4 needed VICTORY_PC_FSR,
VICTORY_FSR_FRAMEGEN=4 and VICTORY_DLSS_MODE by hand through -More, and the
launcher then wrote VICTORY_MENU_FG_TYPE=fsr and VICTORY_MENU_FRAMEGEN=0 over
them, so F1 showed FSR 3 with frame generation off and saved that (the next
start had -FrameGen overruled by the saved 0).

-FgType fsr4 now sets them up as `victory play --fg-type fsr4` does
(play.rs): the PC upscaler in place of DLSS, its scene at -Dlss's size and
quality where -Dlss is off, and with -FrameGen FSR 4 frame generation. Without
a mode named, frame generation keeps the scene at the output's size: on an
RX 9070 XT (Series X, 1440p, 2026-11-29) that rendered 2560x1440 with nothing
upscaled and fell from about 22 to 3 fps once a save was loaded. F1 shows
FSR 4 and the frame generation in use, and a saved fsr4 is taken at the next
start. The FidelityFX folder is found once for both.

The settings it builds match the hand-written run's, the F1 values aside; a
DLSS call's are unchanged. Played: provider 4.1.2 upscaling at 1706x960,
generator provider 4.0.2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠waldyss on GitHub · 2026-11-29 18:32 UTC · original

#2248 on AMD (RX 9070 XT): works, with two notes

Ported the descriptor part onto clean cool_fox main (29 Nov), RX 9070 XT 16 GB, Series X, Play-VIctory-AMD.cmd.

  • Trees: fixed every run.
  • Which views it needs: A/B with a switch per view kind (list views' twins only): UAVs + typed SRVs are enough for the tree culling. Raw-only, structured-only, typed-by-8-only and typed-by-4/12-only each left the trees flickering; all typed shifts together fix them.
  • Faces: with the cool_fox AMD profile's VICTORY_TEXTURE_NO_WAIT=1, characters' skin in cutscenes often came out as colour noise or flat pink while the port was on (clean in runs without it). With VICTORY_TEXTURE_NO_WAIT=0, faces were clean with the port on (3 runs so far). So the port seems to make not-yet-ready skin textures show much more often.

Small sample, so worth a check on your side.

**@⁠waldyss** on GitHub · 2026-11-29 18:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248#issuecomment-7260563224) **#2248 on AMD (RX 9070 XT): works, with two notes** Ported the descriptor part onto clean cool_fox main (29 Nov), RX 9070 XT 16 GB, Series X, `Play-VIctory-AMD.cmd`. - **Trees:** fixed every run. - **Which views it needs:** A/B with a switch per view kind (list views' twins only): UAVs + **typed** SRVs are enough for the tree culling. Raw-only, structured-only, typed-by-8-only and typed-by-4/12-only each left the trees flickering; all typed shifts together fix them. - **Faces:** with the cool_fox AMD profile's `VICTORY_TEXTURE_NO_WAIT=1`, characters' skin in cutscenes often came out as colour noise or flat pink while the port was on (clean in runs without it). With `VICTORY_TEXTURE_NO_WAIT=0`, faces were clean with the port on (3 runs so far). So the port seems to make not-yet-ready skin textures show much more often. Small sample, so worth a check on your side.
Author
Owner

@⁠DoubleD17 on GitHub · 2026-11-30 10:29 UTC · original

We ran a test of this PR on an NVIDIA card (RTX 5070 12 GB, driver 621.40), on current main (41adb551 with this PR merged, head f580ddb7): six 150 s runs among four main runs.

On this card the null twins stay. The frame line's raw-twin counts, last line of each run:

raw twins a frame not on 16 bytes null
main (4 runs) 22,922 to 36,093 941.9 to 1,128.8 the same as "not on 16 bytes" in every run
this PR (6 runs) 22,724 to 24,682 927.6 to 1,026.6 the same as "not on 16 bytes" in every run

So here no unaligned twin is moved, in the staged slot or in the list views. Reading move_raw, it changes a descriptor only when its first 16 bytes read as the GPU address followed by the byte count, the AMD layout its comment describes. That check seems never to pass on this card, so the wider beside() makes no difference on NVIDIA.

The one-frame gap is still there with this PR: 1 frame in 560 (seven runs, a burst of 80 frames at the end of each) had the island trees and the potted plants by the window missing, and the next frame had them back. That is the gap in #1165. On main we see it about once in 3,500 frames on this card, so it is rare here. Dynamic descriptor tables were never refused in the logs we checked, the two runs with a gap among them ("binds dropped for lack of contiguous slots for fresh descriptor tables: 0.00/frame" in every line), so the cause #1007 removes on the RTX 5070 Ti in #1165 is not in play here.

Speed: no clear change. On the light-view seconds (the idle camera's lighter views, about 7,500 draws a frame) fps was 7 % higher than main at that point (12.7 to 14.0 against 12.0 to 13.2), but CPU preparation was 2.7 ms higher per frame. As the null counts do not change here, we do not read either as this PR. The FSR parts were not in play: DLSS did every upscale ("1.00 upscalings by DLSS ... 0.00 left to the title's FidelityFX").

If it helps, we can run an NVIDIA build that logs why move_raw refuses a twin (for example the first 16 bytes it read next to the address and size it expected).

Setup:

  • Ryzen 7 5800X (8 cores, 16 threads), RTX 5070 12 GB (DXGI budget 11,175 MB), 64 GB RAM, Windows 11;
  • Series X, 1440p with DLAA (DLSS at native resolution), frame generation and ray tracing off;
  • the PR merged locally onto main 41adb551, against 41adb551 itself;
  • a warm-up run, then six PR runs among four main runs (ABBA), 150 s each, every run from the same save, restored before each run;
  • picture check: a burst of 80 frames at the end of each run, looked at frame by frame.

AI Assisted

**@⁠DoubleD17** on GitHub · 2026-11-30 10:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248#issuecomment-7275676689) We ran a test of this PR on an NVIDIA card (RTX 5070 12 GB, driver 621.40), on current main (41adb551 with this PR merged, head f580ddb7): six 150 s runs among four main runs. **On this card the null twins stay.** The frame line's raw-twin counts, last line of each run: | | raw twins a frame | not on 16 bytes | null | |---|---|---|---| | main (4 runs) | 22,922 to 36,093 | 941.9 to 1,128.8 | the same as "not on 16 bytes" in every run | | this PR (6 runs) | 22,724 to 24,682 | 927.6 to 1,026.6 | the same as "not on 16 bytes" in every run | So here no unaligned twin is moved, in the staged slot or in the list views. Reading `move_raw`, it changes a descriptor only when its first 16 bytes read as the GPU address followed by the byte count, the AMD layout its comment describes. That check seems never to pass on this card, so the wider `beside()` makes no difference on NVIDIA. **The one-frame gap is still there with this PR:** 1 frame in 560 (seven runs, a burst of 80 frames at the end of each) had the island trees and the potted plants by the window missing, and the next frame had them back. That is the gap in #1165. On main we see it about once in 3,500 frames on this card, so it is rare here. Dynamic descriptor tables were never refused in the logs we checked, the two runs with a gap among them ("binds dropped for lack of contiguous slots for fresh descriptor tables: 0.00/frame" in every line), so the cause #1007 removes on the RTX 5070 Ti in #1165 is not in play here. **Speed:** no clear change. On the light-view seconds (the idle camera's lighter views, about 7,500 draws a frame) fps was 7 % higher than main at that point (12.7 to 14.0 against 12.0 to 13.2), but CPU preparation was 2.7 ms higher per frame. As the null counts do not change here, we do not read either as this PR. The FSR parts were not in play: DLSS did every upscale ("1.00 upscalings by DLSS ... 0.00 left to the title's FidelityFX"). If it helps, we can run an NVIDIA build that logs why `move_raw` refuses a twin (for example the first 16 bytes it read next to the address and size it expected). **Setup:** - Ryzen 7 5800X (8 cores, 16 threads), RTX 5070 12 GB (DXGI budget 11,175 MB), 64 GB RAM, Windows 11; - Series X, 1440p with DLAA (DLSS at native resolution), frame generation and ray tracing off; - the PR merged locally onto main 41adb551, against 41adb551 itself; - a warm-up run, then six PR runs among four main runs (ABBA), 150 s each, every run from the same save, restored before each run; - picture check: a burst of 80 frames at the end of each run, looked at frame by frame. AI Assisted
Author
Owner

@⁠RB-404 on GitHub · 2026-11-30 10:44 UTC · original

@⁠DoubleD17 this is not about the 1 frame gap. This is about trees (plus other objects like bins) fading in and out when you walk up close to them. It lasts for many frames not just 1.

If you’re using Claude make sure you’re at least reading what it says yourself.

**@⁠RB-404** on GitHub · 2026-11-30 10:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248#issuecomment-7276018525) @⁠DoubleD17 this is not about the 1 frame gap. This is about trees (plus other objects like bins) fading in and out when you walk up close to them. It lasts for many frames not just 1. If you’re using Claude make sure you’re at least reading what it says yourself.
Author
Owner

@⁠DoubleD17 on GitHub · 2026-11-30 13:48 UTC · original

You're right, thanks, and sorry for the noise: I tied the fading to the one-frame gap from #1165 without checking it. Our runs above had an idle camera only, so they say nothing about the fading while walking.

What still holds from them: on this NVIDIA card move_raw never moves a twin. "Not on 16 bytes" equals "null" in every frame line, with or without the PR (about 1,000 a frame).

We then ran a short walk: 4 s along a balcony with palms and potted plants, then 4 s back, filmed at 10 captures a second, two runs on main and two with the PR. In those 320 frames nothing faded out and in over several frames, on either build. But that walk is short and does not go right up to trees or bins, so it does not tell whether the fading happens on NVIDIA. If you can point us to a spot and route where it shows best, we will run that on main and with the PR.

AI Assisted

**@⁠DoubleD17** on GitHub · 2026-11-30 13:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248#issuecomment-7280388478) You're right, thanks, and sorry for the noise: I tied the fading to the one-frame gap from #1165 without checking it. Our runs above had an idle camera only, so they say nothing about the fading while walking. What still holds from them: on this NVIDIA card `move_raw` never moves a twin. "Not on 16 bytes" equals "null" in every frame line, with or without the PR (about 1,000 a frame). We then ran a short walk: 4 s along a balcony with palms and potted plants, then 4 s back, filmed at 10 captures a second, two runs on main and two with the PR. In those 320 frames nothing faded out and in over several frames, on either build. But that walk is short and does not go right up to trees or bins, so it does not tell whether the fading happens on NVIDIA. If you can point us to a spot and route where it shows best, we will run that on main and with the PR. AI Assisted
github manually merged commit 15aef63084 into main 2026-11-30 14:14:25 +00:00
Author
Owner

@⁠axknxla on GitHub · 2026-12-01 05:08 UTC · original · edited 2026-12-01 05:27 UTC

Following up on the NVIDIA move_raw question raised in this thread, I published a source-only reproducibility package:

https://github.com/axknxla/nvidia-raw-descriptor-research

The measurements explain why the existing AMD-layout predicate did not recognize descriptors on the measured NVIDIA stack. Native Windows D3D12 and Proton/vkd3d-proton used distinct private 32-byte descriptor templates, requiring separate access and validation paths. On one RTX 2070 SUPER, the backend-specific experimental movers passed frozen prediction cases and synchronized shader readback through staged and ListViews SRV/UAV publication routes.

A separate OpenAI model pass in the same T3/OpenAI toolchain returned PASS_WITH_LIMITATIONS; this was not an external human review. These bytes are implementation details, not a public D3D12 ABI or a universal NVIDIA layout. The work does not establish application behavior or results on other architectures and drivers. Arbitrary unaligned-effective UAV Store4 remains unsupported, and the upper Proton UAV endpoint was not fully verified.

The repository includes source probes, negative results, reproduction instructions, evidence hashes, measured-environment provenance, and a replication-report template. It contains no compiled binaries or proprietary assets. Independent measurements on other NVIDIA architectures and driver versions are welcome.

**@⁠axknxla** on GitHub · 2026-12-01 05:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248#issuecomment-7301459716) · edited 2026-12-01 05:27 UTC Following up on the NVIDIA `move_raw` question raised in this thread, I published a source-only reproducibility package: https://github.com/axknxla/nvidia-raw-descriptor-research The measurements explain why the existing AMD-layout predicate did not recognize descriptors on the measured NVIDIA stack. Native Windows D3D12 and Proton/vkd3d-proton used distinct private 32-byte descriptor templates, requiring separate access and validation paths. On one RTX 2070 SUPER, the backend-specific experimental movers passed frozen prediction cases and synchronized shader readback through staged and ListViews SRV/UAV publication routes. A separate OpenAI model pass in the same T3/OpenAI toolchain returned **PASS_WITH_LIMITATIONS**; this was not an external human review. These bytes are implementation details, not a public D3D12 ABI or a universal NVIDIA layout. The work does not establish application behavior or results on other architectures and drivers. Arbitrary unaligned-effective UAV `Store4` remains unsupported, and the upper Proton UAV endpoint was not fully verified. The repository includes source probes, negative results, reproduction instructions, evidence hashes, measured-environment provenance, and a replication-report template. It contains no compiled binaries or proprietary assets. Independent measurements on other NVIDIA architectures and driver versions are welcome.
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2248
No description provided.