Renderer port 1 on a second machine: batching is what makes it affordable #464

Open
opened 2026-11-27 13:04:08 +00:00 by MikiSayakaSL · 0 comments
MikiSayakaSL commented 2026-11-27 13:04:08 +00:00 (Migrated from github.com)
Contributor

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

  • CPU: AMD Ryzen 7 7800X3D, 8 cores, 16 threads (not the i9-12900K the notes
    are from -- that one has 8 + 8 and 24 threads)
  • 64 GB, Radeon RX 7900 XTX 24 GB (vendor=0x1002 device=0x744c vram_mb=24516)
  • 3840x2160 borderless, title renders 2560x1440 through its own 2/3 scale.
    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.
  • retail 1.0.2.1, Series X profile, prologue street
    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:

  1. The distance is soft while the camera moves and sharp when it stops. It is
    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.
  2. jitter being exactly zero is not us dropping it -- fidelityfx.rs passes it
    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)
  • VICTORY_INDIRECT_BATCH=1 against the default 2: a narrower batch might keep
    some of the flicker down at part of the frames ALONE=0 gains.
  • VICTORY_TEXTURE_STORE=1: for the streaming that keeps textures coarse a long
    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.
<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6646995232 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/issues/464). Originally posted by [MikiSayakaSL](https://github.com/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 - CPU: AMD Ryzen 7 7800X3D, 8 cores, 16 threads (not the i9-12900K the notes are from -- that one has 8 + 8 and 24 threads) - 64 GB, Radeon RX 7900 XTX 24 GB (vendor=0x1002 device=0x744c vram_mb=24516) - 3840x2160 borderless, title renders 2560x1440 through its own 2/3 scale. 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. - retail 1.0.2.1, Series X profile, prologue street 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: 1. The distance is soft while the camera moves and sharp when it stops. It is 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. 2. jitter being exactly zero is not us dropping it -- fidelityfx.rs passes it 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) - VICTORY_INDIRECT_BATCH=1 against the default 2: a narrower batch might keep some of the flicker down at part of the frames ALONE=0 gains. - VICTORY_TEXTURE_STORE=1: for the streaming that keeps textures coarse a long 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 <path> -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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
avatarmanz/VIctory-7900XTX#464
No description provided.