Repository navigation
Conversation
|
On the interface plane's alpha: on the Series X profile the title composites this layer itself, with a final draw that blends one / one-minus-source-alpha, i.e. premultiplied. So From our own runs (RTX 5070 Ti, Windows 11, Series S): plane 0 is the 1920x1080 world and plane 1 a 3840x2160 RGBA8 layer holding menus, loading art, the intro video and HUD control hints. A local pass that draws planes 1-3 over the window buffer with one / one-minus-source-alpha, each from its source rect, brings the intro video and HUD hints back. We haven't run this PR's compose path, so this is not an A/B of it. On the upscaler side, #798 (the title's own upscaler chosen instead of FSR 4) rendered the world lit for us on this card at 9376fd6: median 169 ms against 257 ms on Series X in the same tree, peak commit 23.7 GB against 27.4-28 GB (one run each, about 4.5 min into the first gameplay scene). It may be worth comparing against the FidelityFX stand-in. |
Thanks, that's useful. I've since found #1081, which does the same plane blend with premultiplied alpha on by default and has more testing behind it, so I'll drop compose.rs from this PR and point at #1081 instead. My runs agree with it: with the blend on I had the boot and loading screens at 30 fps and 7 runs (2.5 to 8 min) with no driver event. That leaves the FidelityFX stand-in as an alternative to #798: it answers the FidelityFX API instead of patching the executable, so it doesn't depend on the build hash, but it stretches a 1280x720 render with a bilinear filter where #798 keeps the title's own upscaler. |
|
I tested Two asset-free D3D12 tests built the compute compositor and the FFX stand-in pipelines on the physical RTX. Four existing plane and stretch regressions also passed. Both new paths are separately opt-in in this integration, so the first title comparison can keep the existing stretch while changing the compositor. In the matched offline Series S title run, the alternate compositor initialized and reached a DXGI Present after FidelityFX. The transition frame recorded 10,645 draws. Captures after Present showed a black field and the diagnostic FPS overlay. The existing compositor also reached DXGI Present on the same profile and output a flat dark-blue field. Both runs subsequently ended with the title stall-watchdog signature reported in #416. No driver reset or D3D12 device removal was observed. Codex assisted with the integration and tests. |
…nder
The title's Series S build upscales its world with AMD FidelityFX
(`amd_fidelityfx_loader_xbox.dll`). The upscaler's 20 compute programs come
in a container without a DXIL part, which the translator does not read, so
the upscale pass drew nothing and the world stayed black.
victory-hle fidelityfx.rs (on by default; only the Series S build loads that
DLL; `VICTORY_FFX=0` leaves the title's DLL as before): create, destroy,
query and dispatch are answered here. The render size asked is the display
size (ratio 1, no jitter; `VICTORY_FFX_RENDER=keep` keeps the quality mode's
ratio). The upscale dispatch becomes a bilinear stretch of the rendered
picture over the upscaler's output, recorded in the title's own list
(`VICTORY_FFX_STRETCH=0`: a top-left copy instead).
victory-gpu: `list::stretch_texture` (RGBA16F through two buffers of ours;
the title's bindings are set again by its next draw) and
`list::copy_texture_top_left`; `draw::forget_host_bindings`;
`resource::texture_shape`, `PlacedFootprint::{ZERO, rows}`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested on an 8 GB laptop card, where Series S was black on main: the world renders with this PR and the card has room again. Machine: RTX 3070 Ti Laptop GPU 8 GB (7,249 MB budget, 32-lane waves), NVIDIA 621.40, i9-12900H, 32 GB RAM, Windows 11 26200. Tree:
One run each, so the 16 % in frame time is within what I would call unproven; the 2 GB of card memory is not. What the Series S run logged:
One thing to check, the menus in frame captures. With Not tested: Runs on my machine with my own copy; no game data attached. AI-assisted (Claude Code). |
|
I found why the Series S world stayed black here with the compositor on. The stand-in got a 1280×720 RGBA16F source and a 1920×1080 RGB9E5 destination. Every sampled upscale on Writing the destination in RGB9E5 restored the character, courtyard and movement prompt on my RX 7900 XT (Wine 11.22, RADV 26.3.1). A repeat with the accepted-present sampler counted 492 frames in 73.73 s, or 6.67 FPS, with 4,487 draws/frame. Some scenery still shimmers. The patch also checks bilinear interpolation and row pitch for both output formats with a synthetic GPU readback. Fix against your branch. |
|
A note on my table above: a repeat of the unmodified Series X baseline at the end of the session measured 206 ms median instead of 149 ms (the laptop got slower over the session, cause not established). So please read the frame-time column as "Series S with this PR is not slower than Series X here" and nothing finer. The card-memory difference (4,906 MB against 6,924 and 7,094 MB in the two Series X runs), the world picture in the captures and the absence of a device loss do not depend on that. AI-assisted (Claude Code). |
|
@Tissma95 The stretch makes sense for getting Series S past the black screen without needing the PC SDK. Since #86 and this PR both handle |
Yes, im agreed with that |
|
@Tissma95 Thanks! I put both paths together on a preview branch. It registers the PC SDK handler when |
|
Thanks @AwkGrep256, combining both paths behind VICTORY_FFX_DIR looks right to me: the PC SDK when it's there, the stretch otherwise. I'd suggest #1189 carry the base: the HLE answer to the FidelityFX loader with the stretch handler, since it needs no external download and is what makes Series S render at all. #86 could then rebase on top and add the PC SDK handler and the VICTORY_FFX_DIR switch in the registration. That keeps each PR small enough to review on its own, and Series S support doesn't wait on the SDK path. I can run the combined build on Series S (RTX 3060 Ti, 720p) and report back. |
|
the new fork VIcory-Nvidia have merged this PR, |
Series S: a FidelityFX stand-in, so the world renders without patching the executable
With
--console series-sthe title upscales its world with AMD FidelityFX (amd_fidelityfx_loader_xbox.dll). The upscaler's 20 compute programs come in a container without aDXILpart, which the translator does not read, so the upscale pass draws nothing and the world stays black. None of these programs is bound in a Series X run.This is an alternative to #798, which solves the same problem by patching two functions in the executable so the title picks its own upscaler. The two approaches trade off differently:
victory-hlemov eax, 6; ret)The interface plane is not in this PR any more. #1081 does that blend, with premultiplied alpha by default and more testing behind it. The first version of this PR carried a
compose.rswith straight alpha by default; it has been dropped in favour of #1081.What it does
crates/victory-hle/src/modules/fidelityfx.rs: create, destroy, query and dispatch are answered by the layer. It is on by default, but only the Series S build loads that DLL;VICTORY_FFX=0restores the old behaviour.VICTORY_FFX_RENDER=keepkeeps the quality mode's ratio;VICTORY_FFX_STRETCH=0does a top-left copy instead of the stretch.Helpers in
victory-gpu:list::stretch_texture(RGBA16F through two buffers of ours; the title's bindings are set again by its next draw),list::copy_texture_top_left,draw::forget_host_bindings,resource::texture_shapeandPlacedFootprint::{ZERO, rows}.RGB9E5 output (two commits by @UwUCammie, from Write RGB9E5 output in the Series S upscaler stand-in Tissma95/victory-fork#1): on some setups the upscaler's output is
R9G9B9E5_SHAREDEXP, not RGBA16F, and the world stayed black behind the movement prompt. The stretch now writes either encoding, chosen from the host destination; the packing follows Add experimental PC FSR upscaling #86. A GPU test checks both layouts with pitched rows. Tested by its author on an RX 7900 XT (RADV, Wine).Nothing changes for Series X runs.
Measured (one PC, Ryzen 9 5900X, RTX 3060TI 8GB, 32GB 3600MT/S )
Release build,
--console series-s, with this stand-in and an interface blend applied locally. The switch set is that ofdiagnostics/README.mdplusVICTORY_CARD_HASH_LEN=1, withVICTORY_CARD_WINDOWS_MB=1024 VICTORY_WINDOW_UPLOAD=1.CARD_WINDOWS_MBis set to.Checks
cargo test --workspace --lockedon Windows: all pass. The one exception isxtask policy::tests::repository_passes_policy, which only needsgiton the PATH; it passes in a clone with git, andcargo xtask policy --stagedreports 5 files ok (before the two RGB9E5 commits; they touchlist.rsonly).cargo clippy -p victory-hle --no-deps --all-targets --locked -- -D warnings: clean.cargo clippy --workspace ... -D warningsstops on 8 lints that are already inmainwithout this PR, none of them in a line this PR touches. They are clippy 1.98'smanual_is_multiple_of,unnecessary_sort_by,collapsible_ifandmap_entry, plus dead code:resource::placed_filler_twinsoutside diagnostics builds, andindirect::Rig::depth_written.