Repository navigation
Conversation
…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>
9487628 to
c750c57
Compare
|
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 Same tree, one run each, about 4.5 minutes into the first gameplay scene:
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. |
|
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. |
|
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, So that's two planes, one resource in the first, 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 Things that would narrow it down on your PC:
|
|
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
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 |
|
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
That's one run each, so it's a lead, not a proof. If you have the save handy, |
|
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 AI-assisted (Claude Code); no game data. |
|
Confirmed on an 8 GB card. RTX 4060 Ti 8 GB (driver 621.24), i5-14400F, 32 GB, Windows 11, diagnostics build. Tree:
Before this PR, 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 Not tested: past the first room, without #610/#802. 🤖 Generated with Claude Code |
|
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). |
…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>
|
Confirming on an RTX 4060 8 GB, Windows 10, with #1081 (setup and switches in my #1081 comment). The patch applied to this build (
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). |
With
--console series-sthe 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:
0x60Series S,0x64Series X) and maps it to a device type.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.dlldoes 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
victory-game:KnownBuildgetspatches: &[CodePatch]. Each patch is an RVA, a short signature that must be there, and our own replacement bytes. The asset policy allows per-build offsets and byte signatures. The replacement ismov eax, 6; ret. The one known build, added by its BLAKE3 hash, makes both functions that choose the upscaler return 6. A Series S then keeps its own render profile, with the upscaler that works.victory-loader:PreparedImage::patchchecks every expected run before writing anything, so a patch made for another build changes nothing and is an error. A patched copy has a file name of its own (victory-image-<hash>-p<patches>.dll), so the patched and plain copies never stand in for each other.run: applies the known build's patches.VICTORY_TITLE_PATCHES=0turns them off (for whoever brings FSR 4 up, as in Add experimental PC FSR upscaling #86, Series S: the second present plane, and a plain stretch for the upscale dispatch #188, Shaders: translate the title's FidelityFX upscaler programs (FSPX images) #258 and Series S MPO compositor, R9G9B9E5 target stand-in, and streaming budgets #423).VICTORY_TITLE_PATCH=<rva>:<old hex>:<new hex>,...adds more for experiments.Series X is unchanged. There the chooser already returns 6.
Tested
RTX 3090 Ti, Windows 11,
diagbuild of this branch (on8dd30ab),--console series-s, no switches. Input wasVICTORY_KEYSonly.cargo test -p victory-game -p victory-loader: 29 passed, including the newtitle_patches_check_before_they_writeandknown_builds_are_well_formed.cargo xtask policy: 171 files ok.🤖 Generated with Claude Code