Frame-generation noise, glass and surface reflection noise, controller prompts, diagnostics build #2369

Closed
bachelor-emgi wants to merge 16 commits from upstream-pr/2369 into main
bachelor-emgi commented 2026-11-29 12:24:39 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by bachelor-emgi on 2026-11-29T12:24:39Z.


Fixes #

What it changes

Fixes found on an RTX 5070 (12 GB) with a Ryzen 7 9800X3D, Series X at 2560x1440 with DLSS. Each is a commit of its own; e1b0880 and its revert 5829387 cancel out (squash, or drop both).

Reflections without the structure builder

  • Glass, car windows, light lenses and shop windows were filled with bright speckled colour (magenta, pink, yellow, green, white). Since e2d7854 the reflections' miss program (CS_RayMiss) was left out for opaque and transparent surfaces. Glass mostly mirrors the sky, which the screen-space march does not resolve, so most of its texels in the reflected light (R11G11B10) are written by the miss program alone; since 6ba7fa8 (alias_rt) the targets share physical pages, and those texels held other passes' bytes. The alpha layer's miss program runs again (ff24239).
  • The same on opaque surfaces (car paint, roads): reflections were speckled noise that did not look like reflections. e2d7854 came a day before alias_rt, when an unwritten texel kept the previous frame's reflection, which is why interiors looked clean then. The opaque layer's miss program is now left out only with VICTORY_ALIAS_TARGETS=0 (58758e0). Unresolved rays take the sky's light again, so the white grain on floors at grazing angles that e2d7854 removed may return; VICTORY_AMBIENT_SPECULAR puts the estimate along the reflected direction in its place.

DLSS Frame Generation

  • Noise in the generated frames only (screenshots, which take rendered frames, were clean). With two planes, the interface plane was tagged as UI colour and alpha with the back buffer's extent whatever its size, and Series X at a 1440p output presents a 3840x2160 interface plane: frame generation read its top-left two thirds as the interface over the whole picture. Each plane is now tagged only when it is the back buffer's size (353d514).
  • Depth and motion vectors were tagged as the title's own textures and read at the present, after the rest of the frame; on shared physical pages later passes can write over them. An input in reserved (aliased) memory is now copied at the upscaling, plane by plane, into one of two textures of ours in turn, and the copy is tagged (4a7911c; VICTORY_FRAMEGEN_INPUT_COPY=0 never, =all always). In the test run the motion vectors were aliased and copied; depth was not aliased.
  • VICTORY_FRAMEGEN_VSYNC=1 (off by default): with frame generation on and the driver reporting bIsVsyncSupportAvailable, presents use sync interval 1 without the tearing flag (84d17d3).
  • VICTORY_REFLEX_SLEEP=1 (off by default): slReflexSleep on the title's thread at the end of each of its Present calls, for the next present's frame token, with that frame's simulation start marked after it (c6fd43e, 37f6f92). The simulation-start bookkeeping now records the last frame marked, so each frame is marked once whichever thread comes first; that part is active by default.
  • The DLSS per frame line now says how many upscalings had no jitter and the largest jitter given (99c0dce). In the test run jitter was present: about 1 upscaling in 20 at zero, up to 0.49 render pixels.

Controller prompts

  • With VICTORY_PROMPTS unset, the icon movie was redrawn with key caps for every player, so prompts named keys while playing with a pad. Each input poll now notes the device used last: a pad past its rest, a key other than F1-F12 (our shortcuts), or the mouse the title is given. The prompt hook serves the key caps only while the keyboard or mouse is in use, and before any input only when no pad is connected; CONTROLS GAMEPAD and DUALSENSE never, KEYBOARD always. VICTORY_PROMPTS=keys keeps the key caps always, =gamepad the title's pictures. A change of device shows from the next screen that loads prompts (f0ca055; README updated).

Diagnostics build

  • --features diagnostics did not compile (9 errors): copystat's memory line lost its mb closure in the pr/1725 merge, and Host::submit's local timing shadowed the free timing(). Both fixed (043bfcd); the all-features check builds again.

The new switches are in docs/dlss.md's table.

Not addressed here: the frame rate is still limited by the submitting thread (50-85 ms a frame in these runs, the card idle about a third of each frame), and with frame generation on, textures wait for VRAM room while slot eviction frees nothing.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): RTX 5070 12 GB (driver 621.1), Ryzen 7 9800X3D, Windows 11; Series X at 2560x1440 with DLSS Quality and Balanced, one Series S run; frame generation off and DLSS Frame Generation 4x; ray tracing off (no structure builder).
  • Before: speckled colour on all glass; speckled, non-reflective reflections on car paint and other surfaces; noise on the monitor with frame generation while screenshots were clean; keyboard prompts while playing with a pad; diagnostics build failing.
  • After: glass clean (checked in play). Frame generation 4x run: the log shows the interface plane left untagged and the motion vectors copied; whether the monitor noise is gone is not confirmed yet. Opaque reflections and the prompts are not tested in play yet.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): no shader translation changes; the host runs 32-lane waves (RTX 5070).
  • cargo test passed for the crates it touches: partly. victory-game passes (32 tests); the victory-gpu and victory-hle tests have not run on Windows yet (they do not build on Linux). cargo check --workspace --all-targets, with default and all features, and cargo clippy for x86_64-pc-windows-msvc pass with no new warnings; cargo xtask policy passes.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550676205 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2369). Originally posted by [bachelor-emgi](https://github.com/bachelor-emgi) on 2026-11-29T12:24:39Z. --- Fixes # ## What it changes Fixes found on an RTX 5070 (12 GB) with a Ryzen 7 9800X3D, Series X at 2560x1440 with DLSS. Each is a commit of its own; e1b0880 and its revert 5829387 cancel out (squash, or drop both). **Reflections without the structure builder** - Glass, car windows, light lenses and shop windows were filled with bright speckled colour (magenta, pink, yellow, green, white). Since e2d7854 the reflections' miss program (`CS_RayMiss`) was left out for opaque and transparent surfaces. Glass mostly mirrors the sky, which the screen-space march does not resolve, so most of its texels in the reflected light (R11G11B10) are written by the miss program alone; since 6ba7fa8 (`alias_rt`) the targets share physical pages, and those texels held other passes' bytes. The alpha layer's miss program runs again (ff24239). - The same on opaque surfaces (car paint, roads): reflections were speckled noise that did not look like reflections. e2d7854 came a day before `alias_rt`, when an unwritten texel kept the previous frame's reflection, which is why interiors looked clean then. The opaque layer's miss program is now left out only with `VICTORY_ALIAS_TARGETS=0` (58758e0). Unresolved rays take the sky's light again, so the white grain on floors at grazing angles that e2d7854 removed may return; `VICTORY_AMBIENT_SPECULAR` puts the estimate along the reflected direction in its place. **DLSS Frame Generation** - Noise in the generated frames only (screenshots, which take rendered frames, were clean). With two planes, the interface plane was tagged as UI colour and alpha with the back buffer's extent whatever its size, and Series X at a 1440p output presents a 3840x2160 interface plane: frame generation read its top-left two thirds as the interface over the whole picture. Each plane is now tagged only when it is the back buffer's size (353d514). - Depth and motion vectors were tagged as the title's own textures and read at the present, after the rest of the frame; on shared physical pages later passes can write over them. An input in reserved (aliased) memory is now copied at the upscaling, plane by plane, into one of two textures of ours in turn, and the copy is tagged (4a7911c; `VICTORY_FRAMEGEN_INPUT_COPY=0` never, `=all` always). In the test run the motion vectors were aliased and copied; depth was not aliased. - `VICTORY_FRAMEGEN_VSYNC=1` (off by default): with frame generation on and the driver reporting `bIsVsyncSupportAvailable`, presents use sync interval 1 without the tearing flag (84d17d3). - `VICTORY_REFLEX_SLEEP=1` (off by default): `slReflexSleep` on the title's thread at the end of each of its Present calls, for the next present's frame token, with that frame's simulation start marked after it (c6fd43e, 37f6f92). The simulation-start bookkeeping now records the last frame marked, so each frame is marked once whichever thread comes first; that part is active by default. - The `DLSS per frame` line now says how many upscalings had no jitter and the largest jitter given (99c0dce). In the test run jitter was present: about 1 upscaling in 20 at zero, up to 0.49 render pixels. **Controller prompts** - With `VICTORY_PROMPTS` unset, the icon movie was redrawn with key caps for every player, so prompts named keys while playing with a pad. Each input poll now notes the device used last: a pad past its rest, a key other than F1-F12 (our shortcuts), or the mouse the title is given. The prompt hook serves the key caps only while the keyboard or mouse is in use, and before any input only when no pad is connected; CONTROLS GAMEPAD and DUALSENSE never, KEYBOARD always. `VICTORY_PROMPTS=keys` keeps the key caps always, `=gamepad` the title's pictures. A change of device shows from the next screen that loads prompts (f0ca055; README updated). **Diagnostics build** - `--features diagnostics` did not compile (9 errors): copystat's memory line lost its `mb` closure in the pr/1725 merge, and `Host::submit`'s local `timing` shadowed the free `timing()`. Both fixed (043bfcd); the all-features check builds again. The new switches are in `docs/dlss.md`'s table. Not addressed here: the frame rate is still limited by the submitting thread (50-85 ms a frame in these runs, the card idle about a third of each frame), and with frame generation on, textures wait for VRAM room while slot eviction frees nothing. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): RTX 5070 12 GB (driver 621.1), Ryzen 7 9800X3D, Windows 11; Series X at 2560x1440 with DLSS Quality and Balanced, one Series S run; frame generation off and DLSS Frame Generation 4x; ray tracing off (no structure builder). - Before: speckled colour on all glass; speckled, non-reflective reflections on car paint and other surfaces; noise on the monitor with frame generation while screenshots were clean; keyboard prompts while playing with a pad; diagnostics build failing. - After: glass clean (checked in play). Frame generation 4x run: the log shows the interface plane left untagged and the motion vectors copied; whether the monitor noise is gone is not confirmed yet. Opaque reflections and the prompts are not tested in play yet. - For shader changes, the wave sizes tested (32 and/or 64 lanes): no shader translation changes; the host runs 32-lane waves (RTX 5070). - `cargo test` passed for the crates it touches: partly. `victory-game` passes (32 tests); the `victory-gpu` and `victory-hle` tests have not run on Windows yet (they do not build on Linux). `cargo check --workspace --all-targets`, with default and all features, and `cargo clippy` for `x86_64-pc-windows-msvc` pass with no new warnings; `cargo xtask policy` passes. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Omjihn commented 2026-11-29 13:53:30 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Omjihn on 2026-11-29T13:53:30Z.


Tested on an RTX 4070 (12 GB) (Series X profile, 2560x1440, DLSS Balanced, Frame Gen 2x, Ray Tracing off):

  • Glass & windows: Fixed — the speckled/rainbow artifacts on vehicle glass and storefront windows are completely gone.
  • Frame Generation (2x): Clean output on the monitor with no UI ghosting or noise.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7256879851 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2369#issuecomment-7256879851). Originally posted by [Omjihn](https://github.com/Omjihn) on 2026-11-29T13:53:30Z. --- Tested on an **RTX 4070 (12 GB)** (Series X profile, 2560x1440, DLSS Balanced, Frame Gen 2x, Ray Tracing off): - **Glass & windows:** Fixed — the speckled/rainbow artifacts on vehicle glass and storefront windows are completely gone. - **Frame Generation (2x):** Clean output on the monitor with no UI ghosting or noise.
dyshay commented 2026-11-29 15:40:20 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dyshay on 2026-11-29T15:40:20Z.


Three commits of this PR are merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch janus-prs): ff24239 (window reflections), 58758e0 (opaque miss with alias_rt) and 353d514 (frame-generation planes tagged at the back buffer's size). The only conflict was in streamline.rs's tests. I read the full diff first: no network access, processes, binaries, build or dependency changes. It builds, and the touched crates' CPU tests pass. Results from the RTX 4090 runs will follow here.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7258274045 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2369#issuecomment-7258274045). Originally posted by [dyshay](https://github.com/dyshay) on 2026-11-29T15:40:20Z. --- Three commits of this PR are merged into our fork's integration branch for testing ([dyshay/VIctory-NVIDIA](https://github.com/dyshay/VIctory-NVIDIA/tree/janus-prs), branch `janus-prs`): ff24239 (window reflections), 58758e0 (opaque miss with `alias_rt`) and 353d514 (frame-generation planes tagged at the back buffer's size). The only conflict was in `streamline.rs`'s tests. I read the full diff first: no network access, processes, binaries, build or dependency changes. It builds, and the touched crates' CPU tests pass. Results from the RTX 4090 runs will follow here.

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
trustno1-coder/VIctory-NVIDIA!2369
No description provided.