Present: blend the second present plane (the Series S interface) over the first, fixing the black boot and missing prompts #1079
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1081"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by KyleS98 on 2026-11-25T18:44:57Z.
What
With
--console series-sthe title presents two planes, not one:[0, 0, 1.0, 1.0](the whole screen)[0, 0, 1.0, 1.0]The plane descriptions are 72 bytes apart. I read them from title memory at present: token and count, then the resources, source rects, placement rects, and further fields.
We only showed plane 0. So with the Series S profile everything the title draws on its interface plane was missing:
With
--console series-xthe title presents one 3840x2160 plane with everything in it, which is why the X profile shows them.Change
crates/victory-gpu/src/compose.rsadds one small pass. Plane 0 reaches the back buffer by the sameCopyResourceas with one plane; a full-screen triangle then draws plane 1 over it, blended by the pipeline with premultiplied alpha, which is what display planes take. (Since7f27af9; before that the pass sampled both planes and blended in its shader. See the update below.)CopyResourceas before.host::compile(FXC, SM 5.1), like the depth-plane pass. It writes its descriptors into a 16-slot ring of its own. It has no sampler: plane 1 is filtered in the shader from four texels, and the root signature (one table of one view) is serialized from its description.VICTORY_PLANE_ALPHA=straightswitches to straight alpha.VICTORY_PLANES=0turns the blend off.VICTORY_ASYNC_PRESENT, a two-plane present isn't sent behind the queue's line. It falls back to the present in line, which blends.Tested
RTX 3090 Ti, Windows 11, warm shader cache,
--console series-s, grabs every 5 to 8 s:d510ee4plus this commit): the account picker shows within 15 s and stays up, because main has no scripted input. On plain main plus #835 the same boot was black for the whole 240 s.I haven't confirmed whether the console blends premultiplied or straight. Interface pixels that are fully opaque or fully transparent come out the same either way. If someone sees dark or light fringes around interface text,
VICTORY_PLANE_ALPHA=straightis the A/B to try.Update, 2026-11-27 (
7f27af9)mainthat alone made the title's own picture wrong on an NVIDIA card (bright yellow hair and a wall lit in blocks in the prologue's cell, in every run with it and none without). The pass now has no sampler; measurements and the table of what does and does not trigger it are in this comment.compose/readback.rs, after Filip722's fixture).1268535, found by hadrianhola in this thread).1f5d17a(with #798, #1388, #1414) and on9a9091d(alone, and with #798): details in the comment linked above.AI-assisted (Claude Code; the first version with Claude Opus 5.5, this update with Claude Fable 5.2); runs and grabs on my machine; no game data in the change.
Imported from fxceless/victory-fork. Originally posted by Dathinel on 2026-11-25T18:55:12Z.
Test report from the small end: RTX 3050 Laptop 4 GB (driver 610.62, 32-lane waves), Ryzen 7 7435HS, Windows 11 26200, title build 1.0.2.1. Release build, no
VICTORY_*switches, window on a 1920x1080 screen.Before (
maind510ee4,--console series-s): the window stays black through boot. A desktop screenshot 42 s in is fully black while the caption reads 30 fps and 11 draws/frame; the log shows every draw run, textures uploaded and nothing dropped. The same binary without--console(Series X) shows the loading art at that moment, so it is the profile, not the build.After (local merge of this PR and #798 onto
d510ee4, both apply cleanly;--console series-s):So the black boot is fixed on this card. The log still has the
slot=0x218"pipeline creation method that is not implemented" lines, as before; no new warnings.Not tested: the world (the run was stopped at 75 s), so nothing here about #798's effect or about video memory, which is what I expect to bite first on 4 GB; this PR alone without #798; Series X with this PR.
AI-assisted (Claude Code). No game data attached.
Imported from fxceless/victory-fork. Originally posted by HLVM04 on 2026-11-25T18:56:35Z.
On the open question (premultiplied or straight): on the Series X profile the title composites its interface layer into the single plane itself, and that final draw uses blend one / one-minus-source-alpha. So the title's own compositing is premultiplied, which matches this PR's default.
Independent data point, RTX 5070 Ti, Series S profile: we see the same two planes (plane 0 the 1920x1080 world, plane 1 a 3840x2160 format 28 layer with menus, loading art, the intro video and the HUD's control hints; descriptions 0x48 bytes apart). A local pass of ours that draws planes 1-3 over the window buffer with one / one-minus-source-alpha (source rect, linear sampler, scaled full-window quad) brings back the intro video and the in-world control hints. No video texture was refused or dropped in those runs, so the black boot is the missing plane, not a texture format. We haven't run this PR's code itself.
Imported from fxceless/victory-fork. Originally posted by LeonardoS11 on 2026-11-25T19:56:44Z.
This fixes it on an RTX 3080 Ti as well. Windows 11, 64 GB RAM,
diagbuild withdiagnostics,--console series-s, this PR merged onto79cfdd9together with other open PRs (#798 among them). Before it the window stayed black through the boot screens and the loading screen until the 3D world started (frames saved at 30 s and 60 s were fully black; I had noted that on #798). With it the loading art is there at 60 s and the boot sequence shows, as the person at the keyboard confirmed without being asked. The world's picture is unchanged in the first room. Not checked yet: the in-game prompts and the pause menu. (Frames saved by me on the hardware above; written with Claude Code.)Imported from fxceless/victory-fork. Originally posted by rafaconvaitis on 2026-11-25T23:39:35Z.
An RTX 4070 Series S datapoint on Flamingo
63d976b(native Windows/D3D12, driver 616.64). This pin has its own multi-plane implementation. I added an opt-in metadata trace and compared the two pause states in the same running title:This confirms a narrower shop-pause case even when two planes are admitted to composition. The trace did not read the contents of the UI render target. There is an earlier Series S blank-pause comparison at https://github.com/fxceless/victory-fork/pull/86#issuecomment-7146049906 .
Imported from fxceless/victory-fork. Originally posted by KyleS98 on 2026-11-26T08:52:28Z.
Thank you all for testing this. Where it stands:
VICTORY_PLANE_ALPHA=straightstays only as a test switch.The branch is merged up to
main46bf535(head08ab041; the conflict was only the module list).Re-checked on the RTX 3090 Ti, Series S profile, 280 s from boot: the loading art and boot screens are shown as before.
Edit, correcting what I first wrote here: with this PR alone on
mainthe Series S world still goes black a few seconds after the prologue's title card. That is not a new regression and not from this PR; it is the upscaler problem #798 is for (plain46bf535shows the same black world, Series X is fine, and my build that carries both PRs shows the cell). So on Series S the two belong together: this one for the boot screens and prompts, #798 for the world.AI-assisted (Claude Code, Claude Fable 5.2).
Imported from fxceless/victory-fork. Originally posted by hadrianhola on 2026-11-26T17:56:36Z.
Tested together with #798 on an 8 GB card, where the Series S profile turns out to be the better way to play:
Machine: RTX 4060 8 GB desktop, driver 610.88, HAGS on · i7-5820K (6C/12T) · 32 GB · Windows 10 22H2 19045.
Build:
mainata20809d+ #856 (Agility on Windows 10) + this PR + #798, release,--console series-s. Switches: thetiming-runset fromdiagnostics/README.mdwithoutGPU_TIMING/DRED, plusVICTORY_CARD_HASH_LEN=1 VICTORY_LOOKUP_CACHE=1 VICTORY_HEAP_WORKER=1 VICTORY_SETTLE_ROOM=1 VICTORY_PARALLEL_REFRESH=1. Unattended, 600 s from launch, idle at the cell window.One gap: with two planes the corner box is not drawn, and its load line (
the machine's load over the last second) never appears in the log. The two-plane branch inHost::presentpresents and returns right afterCompose::record, so it skipscrate::fpsbox::draw(and, in diagnostics builds,capture::read_back/capture::probe), which the one-plane branch runs after itsCopyResource. Drawing the box onto the back buffer after the blend would keep both profiles' readings comparable.AI-assisted (Claude Code).
Imported from fxceless/victory-fork. Originally posted by KyleS98 on 2026-11-27T00:50:47Z.
@hadrianhola thank you, both for the 8 GB run and for reading the present path: you are right, and it is fixed in
1268535.The branch that blends the second plane presented and returned straight after the blend pass, so it never reached
fpsbox::draw. That call is also what starts the load sampler, which is why the "machine's load over the last second" line was missing as well. Now the back buffer moves from the present state to a copy's destination after the blend, the box is copied on, and it moves back. A failedPresentis also reported once, as on the one-plane path.Checked on an RTX 3090 Ti, Series S profile, 110 s from boot with this branch alone: the box shows its figures (frame rate, processor, card, memory) over the account picker's and the loading screens' art, and over the world's frame afterwards; no exception. I did not grep for the load line itself (my log filter left that module out); the box showed the sampler's figures, so it is running.
Not changed, on purpose: the diagnostics' frame capture and the black-frame probe are still skipped with two planes. Both look at the title's first plane only, and that plane is black by design while the 2D screens are up, so the probe would call every boot frame black. If captures of the blended picture are wanted, that is a read-back of the back buffer and belongs in its own change.
AI-assisted (Claude Code, Claude Fable 5.2).
Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T08:51:07Z.
I reproduced a compositor initialization failure on the RTX 5060 Laptop GPU with NVIDIA 615.78.08, GE-Proton11-14, and vkd3d-proton 3.2.0, using this PR at
1268535aand a synthetic 5 × 3 pixel readback.RTS0part, and root signature creation returned0x80004005.This was an offscreen GPU test of this PR's composition path. I measured gameplay separately on an older integration.
The tested fallback and readback fixture apply directly on
1268535a. The two-file branch passed the same physical RTX pixel test with no DXC helper changes and the staged asset check.Assisted by Codex (GPT-6.2-Sol High).
Imported from fxceless/victory-fork. Originally posted by KyleS98 on 2026-11-27T10:39:07Z.
@Filip722 thank you for the Wine run and the fixture. Both are in
7f27af9, in another shape, because the same push takes the sampler out of this pass altogether. That has a reason of its own, and it is a correction to my last comment: this PR as it stood (1268535) broke the title's own picture on my NVIDIA card. My "checked on an RTX 3090 Ti" there was 110 s from boot and never looked at the world.What was wrong.
mainat1f5d17a, Series S profile, RTX 3090 Ti, driver 616.92, prologue cell: with this PR the main character's hair came out bright yellow and the wall beside her lit in blocks, as if the shadows were gone. Every run that made the pass's static sampler showed it (14 runs with the pass as it stood or cut down, 6 more with nothing but one extra root signature); none of 11 runs without it did.What it was not. Not the blend, not the shader reading the first plane, not the state changes. The picture was the same with the pass made and never recorded, with it made on a thread of its own, and with no pass at all: only its root signature made, which no list ever bound.
What it is, as far as I got. One more static sampler unlike the title's own, made before them. The title's translated pipelines carry 23 different static samplers in their first 2,048 root signatures; mine was linear and clamped, with the root signature language's values for the rest (maximum anisotropy 16, border opaque white, no last level).
So the order in which different static samplers are first made on the device decides what the title's pipelines sample with. A host sampler heap grown to 2,048 defined slots changes nothing, so it is not a sampler index past the title's 128-slot heap. What I have since seen points at the pipeline library: on
9a9091done and the same build (this branch with #798) with the same switches shows the wrong picture on the library that earlier launches had filled and the right one from an empty library. I am still testing that and will write it up on its own if it holds, since it reaches beyond this PR.What changed here.
RTS0,0x80004005) makes no difference. That is your fallback made the only path; with no sampler and no constant left it is a dozen lines.VICTORY_PLANE_ALPHA=straightas before).compose/readback.rs, credited in the commit). It runs on whatever host device there is instead of asking for one card by name, and checks the same fifteen texels (clear, half covered, opaque) over a back buffer that already holds a first plane. It passes here on the RTX 3090 Ti.mainat9a9091d(the conflict was the module list).Tested in the game (RTX 3090 Ti, driver 616.92,
--console series-s, hands off, 250 to 330 s a run):1f5d17awith #798, #1388 and #1414: the boot logos, the account picker and the loading art show; in the cell the hair is dark, the wall evenly dark, the print on the shirt there; 17.8 to 18 frames a second as before; 0 exceptions.9a9091d, this branch alone: the logos, the picker and the loading art show; the world is black, which is #798's case, as @hadrianhola found above.9a9091dwith #798, from an empty pipeline library: the cell as in the first line, 0 exceptions. Switches:VICTORY_BVH_BUILDER=0,VICTORY_DENY_PIPELINES_FILEwith the ray-tracing programs,VICTORY_ABSENT_ONCE=1 VICTORY_ABSENT_MS=told VICTORY_FILLS_PLAIN=1, andVICTORY_INDIRECT_WINDOW=1 VICTORY_JOIN_PARTS=1 VICTORY_BACK_OWN_VIEW=1 VICTORY_INDIRECT_GATHER=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_LEVELS_ON_DEMAND=1 VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_MERGE_GAP=64 VICTORY_MERGE_RUNS=4096 VICTORY_STAGING_POOL=0 VICTORY_COPY_PLAIN=1 VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_CARD_BUFFERS_MB=1280.If you can spare a run of your Wine setup on
7f27af9, that would tell whether the pass now gets made there.AI-assisted (Claude Code, Claude Fable 5.2).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.