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

Merged
RB-404 merged 3 commits from upstream-pr/2248 into main 2026-11-30 14:12:03 +00:00
RB-404 commented 2026-11-29 11:02:28 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RB-404 on 2026-11-29T11:02:28Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550071315 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248). Originally posted by [RB-404](https://github.com/RB-404) on 2026-11-29T11:02:28Z. --- 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)
RB-404 commented 2026-11-29 11:06:11 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RB-404 on 2026-11-29T11:06:11Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7254881191 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248#issuecomment-7254881191). Originally posted by [RB-404](https://github.com/RB-404) on 2026-11-29T11:06:11Z. --- Will probably have to add AMD upscaler SHA-256 to "get-amd-fsr.ps1"
waldyss commented 2026-11-29 18:32:26 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by waldyss on 2026-11-29T18:32:26Z.


#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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7260563224 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248#issuecomment-7260563224). Originally posted by [waldyss](https://github.com/waldyss) on 2026-11-29T18:32:26Z. --- **#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.
DoubleD17 commented 2026-11-30 10:29:46 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by DoubleD17 on 2026-11-30T10:29:46Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7275676689 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248#issuecomment-7275676689). Originally posted by [DoubleD17](https://github.com/DoubleD17) on 2026-11-30T10:29:46Z. --- 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
RB-404 commented 2026-11-30 10:44:39 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RB-404 on 2026-11-30T10:44:39Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7276018525 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248#issuecomment-7276018525). Originally posted by [RB-404](https://github.com/RB-404) on 2026-11-30T10:44:39Z. --- @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.
DoubleD17 commented 2026-11-30 13:48:26 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by DoubleD17 on 2026-11-30T13:48:26Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7280388478 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248#issuecomment-7280388478). Originally posted by [DoubleD17](https://github.com/DoubleD17) on 2026-11-30T13:48:26Z. --- 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
axknxla commented 2026-12-01 05:08:20 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by axknxla on 2026-12-01T05:08:20Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7301459716 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2248#issuecomment-7301459716). Originally posted by [axknxla](https://github.com/axknxla) on 2026-12-01T05:08:20Z. --- 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.
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
trustno1-coder/VIctory-NVIDIA!2248
No description provided.