Renderer port #1 (VICTORY_PORT_CONSTANTS=1) on Ampere: the submitting thread saves ~9 ms, but the card waits ~25 ms a frame on the in-place heap #1223

Closed
opened 2026-11-28 15:59:20 +00:00 by github-bot · 2 comments
Owner

@⁠KelvinSilvaDev on GitHub · 2026-11-28 15:55 UTC · original

On an RTX 3090 (Ampere, 6 MB L2), port #1 does what it promises on the CPU side and the picture is correct, but the card then waits on the heap opened in host memory, and the frame gets slower overall. Resizable BAR on or off makes no difference (expected: the card reads host memory over PCIe either way).

Setup: Windows 11, driver 621.40, Ryzen 7 7700, Series S profile, DLSS Performance, FSR 3 FG 2x, release build, frame-rate cap off. Boat cutscene from a fixed save, 6-minute runs, screenshots at the same offsets after the menu Enter:

median ms/frame submit thread preparing waiting for the card picture
port #1 off 40.8 28.4 ms 2.4 ms correct
VICTORY_PORT_CONSTANTS=1 54.1 19.3 ms 27.7 ms identical to the run without it

The day before, without Resizable BAR (Series X profile, warm pipelines, scripted walk), the same switch gave 44.7 → 55.6 ms with the submitting thread's preparing going 31 → 23 ms: same pattern.

The port's own line reports, per frame, ~6,300 fills read out of the ported memory on the CPU (~2.2 MB) and 6 buffer copies touching it.

Our guess, not verified: the constants in the 185 MB stretch are read many times per frame by many waves, and with 6 MB of L2 those reads keep crossing PCIe, while a 48 MB L2 (RTX 40) keeps most of them on the card. If that holds, port #1 may want to stay off on cards with a small L2, or copy the ranges a frame reads into card memory. Happy to run any experiment that helps.

Measured with the help of an AI assistant (Claude).

**@⁠KelvinSilvaDev** on GitHub · 2026-11-28 15:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1223) On an RTX 3090 (Ampere, 6 MB L2), port #1 does what it promises on the CPU side and the picture is correct, but the card then waits on the heap opened in host memory, and the frame gets slower overall. Resizable BAR on or off makes no difference (expected: the card reads host memory over PCIe either way). Setup: Windows 11, driver 621.40, Ryzen 7 7700, Series S profile, DLSS Performance, FSR 3 FG 2x, release build, frame-rate cap off. Boat cutscene from a fixed save, 6-minute runs, screenshots at the same offsets after the menu Enter: | | median ms/frame | submit thread preparing | waiting for the card | picture | |---|---|---|---|---| | port #1 off | 40.8 | 28.4 ms | 2.4 ms | correct | | `VICTORY_PORT_CONSTANTS=1` | 54.1 | 19.3 ms | 27.7 ms | identical to the run without it | The day before, without Resizable BAR (Series X profile, warm pipelines, scripted walk), the same switch gave 44.7 → 55.6 ms with the submitting thread's preparing going 31 → 23 ms: same pattern. The port's own line reports, per frame, ~6,300 fills read out of the ported memory on the CPU (~2.2 MB) and 6 buffer copies touching it. Our guess, not verified: the constants in the 185 MB stretch are read many times per frame by many waves, and with 6 MB of L2 those reads keep crossing PCIe, while a 48 MB L2 (RTX 40) keeps most of them on the card. If that holds, port #1 may want to stay off on cards with a small L2, or copy the ranges a frame reads into card memory. Happy to run any experiment that helps. Measured with the help of an AI assistant (Claude).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 15:59:20 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 15:55 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-28 15:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1223#issuecomment-7241844202) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠KelvinSilvaDev on GitHub · 2026-11-28 16:03 UTC · original

Thanks. This one is a performance report rather than a crash: the title ran to the end in both runs, so there is no crash log.

  • GPU: NVIDIA GeForce RTX 3090 24 GB (Ampere, 6 MB L2), driver 621.40, Resizable BAR on (BAR1 32 GiB)
  • Windows 11 Pro 25H2 (build 26200), Ryzen 7 7700, 32 GB DDR5
  • Series S profile, DLSS Performance, FSR 3 frame generation 2x, release build, frame-rate cap off

Play logs of the two runs in the table above (boat cutscene from a fixed save, 6 minutes after the menu Enter), with the Windows user name and the PC name replaced by placeholders:
https://gist.github.com/KelvinSilvaDev/0a8dc7a3b4c8bc65bce72075f39c48d2

  • port1-off-victory-nvidia-20261128-121212.log: port #1 off (40.8 ms/frame median, the submitting thread preparing 28.4 ms, 2.4 ms waiting for the card)
  • port1-on-victory-nvidia-20261128-121933.log: VICTORY_PORT_CONSTANTS=1 (54.1 ms, 19.3 ms preparing, 27.7 ms waiting for the card); the port's own lines are in it ("renderer port 1: … regions of the title's graphics memory in place …")
**@⁠KelvinSilvaDev** on GitHub · 2026-11-28 16:03 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1223#issuecomment-7241937221) Thanks. This one is a performance report rather than a crash: the title ran to the end in both runs, so there is no crash log. - GPU: NVIDIA GeForce RTX 3090 24 GB (Ampere, 6 MB L2), driver 621.40, Resizable BAR on (BAR1 32 GiB) - Windows 11 Pro 25H2 (build 26200), Ryzen 7 7700, 32 GB DDR5 - Series S profile, DLSS Performance, FSR 3 frame generation 2x, release build, frame-rate cap off Play logs of the two runs in the table above (boat cutscene from a fixed save, 6 minutes after the menu Enter), with the Windows user name and the PC name replaced by placeholders: https://gist.github.com/KelvinSilvaDev/0a8dc7a3b4c8bc65bce72075f39c48d2 - `port1-off-victory-nvidia-20261128-121212.log`: port #1 off (40.8 ms/frame median, the submitting thread preparing 28.4 ms, 2.4 ms waiting for the card) - `port1-on-victory-nvidia-20261128-121933.log`: `VICTORY_PORT_CONSTANTS=1` (54.1 ms, 19.3 ms preparing, 27.7 ms waiting for the card); the port's own lines are in it ("renderer port 1: … regions of the title's graphics memory in place …")
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#1223
No description provided.