Skip to content

Series S: the title keeps its own upscaler, not FSR 4 (world frames were black) - #798

Open
KyleS98 wants to merge 1 commit into
fxceless:mainfrom
KyleS98:fix/series-s-own-upscaler
Open

KyleS98 wants to merge 1 commit into
fxceless:mainfrom
KyleS98:fix/series-s-own-upscaler

Conversation

@KyleS98

@KyleS98 KyleS98 commented Nov 25, 2026 •

Copy link
Copy Markdown

With --console series-s the world now renders. Before, every world frame was black. On this branch alone, on an RTX 3090 Ti with no switches, the prologue runs at 5.5 fps steady. With the texture-check changes of #768 on top it reaches 6.2 fps, against 4.7 to 4.8 fps on the Series X profile of that same build. This addresses the black-screen reports in #13, #176, #425 and #616.

Why the frames were black

The title chooses its upscaler from the console it believes it is on. A static look at the executable, kept outside the repository, shows:

  • One function reads the console mode (0x60 Series S, 0x64 Series X) and maps it to a device type.
  • The upscaler chooser returns 7 (FSR 4) only on a Series S that reports the FidelityFX capability. Every other case returns 6, the title's own upscaler, which is what a Series X runs.
  • The per-frame size query has a second, inlined copy of the same choice.

FSR 4's output never reaches the screen under VIctory. Its ACO pipelines do not deserialize (#13), and its passes do not produce a picture here. Holding back amd_fidelityfx_upscaler_xbox.dll does not help either: the title still picks FSR 4, its context creation fails, and the title divides by zero inside the FSR 4 wrapper.

The change

Series X is unchanged. There the chooser already returns 6.

Tested

RTX 3090 Ti, Windows 11, diag build of this branch (on 8dd30ab), --console series-s, no switches. Input was VICTORY_KEYS only.

build          Xbox Series master (b99f876b…)
title patch    +0x7e93f0 upscaler choice: 4883ec28803d -> b806000000c3
title patch    +0x5400190 upscaler choice (the per-frame copy): 4883ec28488b -> b806000000c3
build profile picture steady fps on the GPU
this branch Series S intro cutscene, then the lit prologue: cell, window, the yard with inmates 5.5–5.6 91–96 ms
same commit with #768 and other local changes Series S, before (FSR 4) prologue card, then black 6.4 69 ms
same commit with #768 and other local changes Series S, after lit prologue 6.1–6.4 72–74 ms
same commit with #768 and other local changes Series X lit prologue 4.7–4.8 ~125 ms
  • cargo test -p victory-game -p victory-loader: 29 passed, including the new title_patches_check_before_they_write and known_builds_are_well_formed.
  • cargo xtask policy: 171 files ok.

🤖 Generated with Claude Code

…e black)

The title chooses its upscaler by console: on a Series S with the
FidelityFX capability, FSR 4 (type 7); otherwise its own (type 6, as on a
Series X). FSR 4's output never reaches the screen under VIctory, so every
world frame was black with `--console series-s`, and holding its DLL back
makes the title divide by zero in the FSR 4 wrapper.

The known build now carries code patches (victory-game: per-build RVA, a
short signature checked before anything is written, our own bytes): both
functions that make the choice return 6. The prepared copy is patched
before it is mapped and gets a file name of its own.
VICTORY_TITLE_PATCHES=0 turns them off; VICTORY_TITLE_PATCH=<rva>:<old>:<new>
adds more.

In game (RTX 3090 Ti, Series S, no switches): the prologue renders, 6.1 to
6.4 fps steady (about 73 ms on the GPU), against 4.7 to 4.8 fps on the
Series X profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HLVM04

HLVM04 commented Nov 25, 2026

Copy link
Copy Markdown

Another NVIDIA card, for comparison with the black screen above: on an RTX 5070 Ti (16 GB, wave32 only, NVIDIA 616.64, Windows 11), this PR merged onto 9376fd6 with the Series S profile renders the world. The first gameplay scene (the window scene) is lit and correct, with no device loss. The band of blocks along the bottom edge that the Series X profile shows on the same tree is gone; a few blocky spots show early on.

Same tree, one run each, about 4.5 minutes into the first gameplay scene:

profile median ms a frame peak commit
Series X 257 (~3.9 fps) 27.4–28 GB
Series S with this PR 169 (~5.9 fps) 23.7 GB

I don't have the plane count or present format from these runs, so this only says the patched path can reach a visible world on a second NVIDIA card.

@cdomergue

Copy link
Copy Markdown

Update after loading finished: the 3D scene is visible on my RTX 4070 SUPER in Series S. I could see a character inside a vehicle and the environment outside. My earlier conclusion that the world stayed black was premature. The profile selector still appears black.

The visible scene was on #798 merged onto 9376fd6, Windows, NVIDIA driver 616.92, with the Series S settings file and a diagnostic build. Both upscaler patches were applied. The initial run on the PR head alone (c750c57, release build) had reached dialogue while the window was still black. I haven't verified the same post-loading scene on that release build.

For the menu, the diagnostic captures at frames 128 and 256 showed two planes supplied to PresentX. The presenter selected the first plane's single 1920 × 1080 RGBA8 resource (DXGI format 28). Its captured RGB values were all zero. In the same frames, a separate 3840 × 2160 RGBA8 render target contained the profile-selector text and controller prompts. So the menu is being drawn, and its visible content is missing from the image selected for display.

@KyleS98

KyleS98 commented Nov 25, 2026

Copy link
Copy Markdown
Author

Thanks @cdomergue for the careful check, and @HLVM04 for the second card.

What the 3090 Ti presents. None of my earlier logs had this, so I added a log line to the present: it prints the plane count, the first plane's resources, and the format and size of the resource we show whenever they change. A run with it (this patch on top of 9376fd6 and my other branches, diag build, --console series-s, 8 minutes through the cutscene, the cell and the corridor) printed one line, at frame 1, and never changed:

what the title presents changed (we show the first plane's first resource) frame=1 planes=2 resources=1 format=28 width=1920 height=1080

So that's two planes, one resource in the first, DXGI_FORMAT_R8G8B8A8_UNORM, 1920×1080, from the first present on. Everything we show goes through that first plane. The second plane is never shown, as you said.

What the same run looked like. Window grabs every 10 s (of the window itself, not the screen): the client area is black for the first ~90 s here too (boot, logos, the player select that VICTORY_KEYS presses through, at 4 to 8 draws a frame). The first picture is the "Nine months ago" card about 100 s in, then the cutscene, then the lit cell and corridor. So on this machine a black logo and menu don't predict a black world either. What separates your run from mine is the world staying black.

Things that would narrow it down on your PC:

  1. How long the world stayed black, and whether it was a first run. On a cold shader cache the world can stay black or near-empty for minutes while its pipelines are made. The frame line's (N being made) count shows that, and it should fall to 0. A second run on the same cache rules that out.
  2. The same build and save with --console series-x. You saw a picture on Series X with another revision. If this revision shows the world there, the difference is in what the Series S profile changes (render sizes, the second plane, budgets). If Series X is black too, it's the revision.
  3. Warnings from the present in the log, which a release build prints too: cannot present this format, no swap chain, swap chain not resized.
  4. The present line above from your machine. It's in GPU: the present logs what the title presents whenever it changes #835 (one small commit on main). Run with RUST_LOG=warn,victory_gpu::queue=info. If your first plane differs (another format or size, or format=-1 for no host copy), that points straight at the cause.

@timorjay

timorjay commented Nov 25, 2026 •

Copy link
Copy Markdown

I reproduced the Series S display fix on an RTX 5090 D v2 (24 GB), driver 617.42, Ryzen 7 9800X3D, Windows Sandbox on Windows 11 Pro build 26300.

I compared release builds of 9376fd60 and the same commit with only c750c57f applied. Both used --console series-s, VICTORY_LEVELS_ON_DEMAND=1, copies of the same local prologue save/settings, and separate, initially empty VIctory caches. The compatibility layer identified the title and logged both built-in upscaler changes on the patched run.

Build What the game window showed 90 s median of reported FPS Median GPU time
Base Black through 8 min 28 s, including after movement and camera input. The guest desktop and live game title bar remained visible. 4.14, black output 94.6 ms
Base + #798 The initial screens were black. The prison window, fence, courtyard and bunks appeared about 5 min 9 s after process start. Backing up and turning showed a different part of the cell and other inmates. 4.20, visible room 90.9 ms

The patched run had 75 application-frame-time samples over 90 seconds at the fixed window view, with FPS P10/P90 of 2.04/4.31. The shirt and wall rendered, but Lucia's facial skin and neck were still missing on this launch. I did not see the movement hint that the Series X profile draws. Neither run logged device removal before I stopped it. The useful change in this pair is that the rendered world actually reached the window.

A second launch in a freshly created offline Sandbox also cleared the black opening screens with menu input and reached the prison view. I verified the fixed view against the first run at three successive checks. This second run checked launch reproducibility.

The victory-game and victory-loader test targets passed locally (32 tests including integration tests). Hardware run and write-up assisted by Codex.

@KyleS98

KyleS98 commented Nov 25, 2026 •

Copy link
Copy Markdown
Author

Thanks @timorjay, that's a clean pair. About five minutes to the first world frame on an empty cache also fits point 1 above: the opening screens stay black while the world's pipelines are made, so a black screen in the first minutes of a first run says little either way.

On the missing facial skin and neck: I think that's 9376fd6 itself, not this PR. I see the same thing on 9376fd6 merged with my other branches, and it follows VICTORY_HEAP_SYNC (the mirroring of byte-copied descriptor records added in a26859f). Runs on an RTX 3090 Ti, Series S, warm cache, 8 minutes each (A and B on one tree; C on that tree plus #799):

run switches opening cutscene, then the prologue
A defaults the woman in the pink shirt has no face and no textures; the dorm loses its orange window light and fog
B VICTORY_HEAP_SYNC=0 VICTORY_VIEW_OWN_COPY=0 faces and textures back; the window scene looks like it did before a26859f
C VICTORY_HEAP_SYNC=0 only faces back (own-copy views on)

That's one run each, so it's a lead, not a proof. If you have the save handy, VICTORY_HEAP_SYNC=0 on your patched build would show whether Lucia's face comes back on the 5090 D too. I'll take it up with a26859f separately so it doesn't clutter this PR.

@MamaLeVrai

Copy link
Copy Markdown

Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head c750c57 into main 9376fd6 in a throwaway tree (no conflict). cargo clippy --workspace --all-targets --locked -- -D warnings fails with exactly the errors main itself has on this machine (placed_filler_twins never used, depth_written never read, in victory-gpu); with --all-features it fails with the same number of errors as main (4). This PR adds none and removes none. cargo test --workspace --locked: 542 passed, 0 failed, 10 ignored, two runs (main alone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data.

AI-assisted (Claude Code); no game data.

@ofc0urse

Copy link
Copy Markdown

Confirmed on an 8 GB card. RTX 4060 Ti 8 GB (driver 621.24), i5-14400F, 32 GB, Windows 11, diagnostics build.

Tree: main at 9376fd6 + #610 (68e6f6a) + #802 + this PR (c750c57, clean cherry-pick). VICTORY_TEXTURE_DROP_MIPS=1, VICTORY_TEXTURE_NO_WAIT=1, warm shader cache, the same automated walk into the first room.

Profile Settled ms/frame (minutes 10 to 13) Result
Series X, same build 235-250 world renders
--console series-s 191-201 (about 5 fps) world renders, 14 min without a device loss

Before this PR, --console series-s on this machine removed the device about 2 minutes in, right after the FSR 4 path started.

One more observation, in case it is useful to someone: the static blocky patches in the lower corners of the first room that I see in most Series X runs with DROP_MIPS=1 (described on #610) did not appear in the Series S captures (frames 3600 and 5000 of one run). One run is too few to call it.

Not tested: past the first room, without #610/#802.

🤖 Generated with Claude Code

@EgoraWyn

Copy link
Copy Markdown

Test report from an RTX 3060 Laptop 6 GB (Series S profile, title build 1.0.2.1, Windows 11) — the thread has 8 GB and larger cards, so this is the small-card data point.

The world renders with this change on this card. One 210 s world run, no crash and no device loss, frames inspected.

No timing claim: the run it would be compared against showed different scenes, and I did not record whether the shader cache was warm for it, so take this as a render-and-stability data point only. 210 s is also short next to the 8–14 minute runs reported above.

One thing I want to keep separate: we do see missing skin here, but we see it with this change and without it, so nothing in our runs points at this PR for that.

Written with Claude Code (model claude-opus-5).

akus-elinius pushed a commit to akus-elinius/victory-fork that referenced this pull request Nov 25, 2026
…ere black) (fxceless#798)


PR: fxceless#798
Head: c750c57

Checked against the title's executable: the expected bytes are at +0x7e93f0 and +0x5400190.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hadrianhola

Copy link
Copy Markdown

Confirming on an RTX 4060 8 GB, Windows 10, with #1081 (setup and switches in my #1081 comment). The patch applied to this build (upscaler choice: 4883ec28803d -> b806000000c3 and the per-frame copy). Same place as my Series X runs in #1211 (cell window, prologue), 10 minutes each:

Series X (2nd start) Series S + #1081 + #798 (1st / 2nd start)
fps median (max) 4.6 (6.0) 6.6 (7.5) / 6.4 (7.3)
ms per frame, average 227 178 / 176
video memory, peak / budget 8,066 / ~6,900 MB 6,802 / ~6,954 MB
refused pipelines 7 the same 7
device removed none none

So on an 8 GB card the Series S profile is about 40 % faster here and, for the first time in my runs, stays within the card's memory budget. Without #798 the same build renders the world black (FSR 4 chosen), as you describe. The red stepped patch on the character's back that comes and goes in Series X (#310) shows here too.

AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants