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