Renderer port 1 on a second machine: batching is what makes it affordable #464
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 avatarmanz/VIctory-7900XTX. Originally posted by MikiSayakaSL on 2026-11-27T13:04:08Z.
First: thank you for VICTORY_PORT_CONSTANTS_ORDER and the 2026-11-26 notes.
They pointed at exactly the two things wrong here -- lamp-lit rooms swinging
between too dark and too bright, and trees dropping out. Both are gone once
port 1 is on.
What did not carry over is the price, and it comes from the companion's default.
The machine
are from -- that one has 8 + 8 and 24 threads)
So this is the same draw as README's "4K drawn at 1440p" line: the log shows
presenting to a window width=3840 height=2160 beside textures at
width=2560 height=1440.
The scene is not the water scene the notes measure, and the CPU differs, so
absolute frames are not comparable with yours. What is worth reporting is the
direction and the size of the change within this machine.
The bug that was not visible
With default settings, renderer port 1 appears in no line of the log. The
ordering switch is a companion of port 1, and port 1 itself is off by default
(port.rs: "off by default"). With it off, no indirect execution ever takes the
in-place path the ordering corrects, so the ordering never runs -- and the
2026-11-26 fix has no effect.
That may be worth a line in the README next to the fix, because the way it reads
now ("VICTORY_PORT_CONSTANTS_ORDER, on by default") suggests the fix is on.
Turned on, it is on for everything:
renderer port 1 (VICTORY_PORT_CONSTANTS=1): 1 regions of the title's graphics
memory in place (185 MB), 1 title buffers and windows placed in them
renderer port 1: indirect executions with arguments or count in place per
frame: 4132, of them 4132 clamped after every shader write before them
The price, and what ALONE=0 does about it
Three runs, same part of the prologue, one setting apart.
"waiting" is the frame line's on the GPU -- host.rs defines it as "ms waiting
for the GPU", the submitting thread blocked on the card, not the card's busy
time. Frames are playing frames only: menus and transitions sit at the 30 fps
cap and would flatten the comparison.
run port 1 _ORDER_ALONE fps (playing) waiting mean peak
20:01 off -- 15.7 (n=37) 2.3 ms 21.8 ms
20:19 on 1 (default) 10.9 (n=32) 28.6 ms 110.9 ms
20:25 on 0 18.4 (n=61) 0.8 ms 5.5 ms
_ORDER_ALONE=1 is one execution per pass, and this scene has 4,132 of them a
frame. Each is a pass between two full waits, so the submitting thread waits
28.6 ms a frame where it waited 2.3, and frames reach 110.9 ms where a level
view holds the most mesh. README says the ordering costs "about 2-5 ms"; if I
read that as the ordering with a batch, then this is not a contradiction -- it
is the same code with no batch, and on this scene that is 26 ms.
_ORDER_ALONE=0 (one batch opened after the last shader that may write buffers)
drops the clamped count to 1,178-2,546 depending on the view, puts the waiting
back at 0.8 ms, and gives 18.4 fps -- 2.7 more than with port 1 off entirely.
What batching gives back
The palm and tree flicker, back to where it was before the patch. A player
looking at the two runs one after another put it as: "the flicker got worse than
a moment ago, back to the previous level, but the frame rate improved a lot."
That matches your own pop-15 result ("the palms still came and went"), so it is
not new -- just a confirmation that the trade is the one you documented, from a
different machine and scene.
Given that the remaining flicker is already in README's "What is known to be
wrong", trading it for 2.7 frames seems right; the lighting fix stays.
Two things I took for bugs and they are not
Noted so nobody spends a day on them again:
the title's own temporal antialiasing: jitter=[-0.0, -0.0] reaches the
upscaler unchanged, and the history accumulates only while the view holds
still. FSR's sharpening reconstructs part of what the accumulation loses,
which is why it looks sharper with -Fsr4K.
through ("The rest passes through unchanged: ... jitter"). Flagging it only
because zero jitter means no sub-pixel offset at all, so temporal
accumulation has nothing to accumulate. If that is the title's own choice for
its console upscaler it is fine; if the PC FSR path was expected to supply
its own jitter phase, that is where it would go. I could not tell which from
the code.
Not tried (left for when you settle the patch)
some of the flicker down at part of the frames ALONE=0 gains.
time. Also noted the counter-intuitive part -- under -Fsr4K the picture looks
sharper, not because the softness is fixed but because sharpening covers it.
Reproduce
scripts\play.ps1 -Exe -More @{VICTORY_PORT_CONSTANTS='1'; VICTORY_PORT_CONSTANTS_ORDER_ALONE='0'}
One difference from your launcher in these runs: VICTORY_PIPELINE_WORKERS=16
(the 16 logical threads here) against the default's 10 on this CPU. Held the
same across all three runs, so it does not affect the comparison, but it is not
what an upstream run has.