RTX 3080 Ti: renderer port 1 (VICTORY_PORT_CONSTANTS=1) halves GPU throughput on NVIDIA; 13.8 → 22 fps with it off #115

Open
opened 2026-11-27 02:11:12 +00:00 by github-bot · 8 comments
Owner

@⁠SquillyBoi on GitHub · 2026-11-27 01:59 UTC · original

Vice-Tay build

4e3e366 (diag)

Hardware and graphics driver

i9-14900K (32 threads), RTX 3080 Ti 12 GB (Resizable BAR on), 32 GB RAM, Windows 11, driver 421.01

How to reproduce

Series S, VICTORY_OUTPUT=1920x1080, scripts/play.ps1 -Machine 4070 plus
-More @{VICTORY_PORT_CONSTANTS='1'; VICTORY_PORT_DESCRIPTORS='1'; VICTORY_PORT_CBV='1'; VICTORY_PORT_GUARD='1'; VICTORY_PORT_JOURNAL='1'}
(the renderer patches as Belobug's README recommends them). Prison dorm after loading in, camera still.

What you observed

With VICTORY_PORT_CONSTANTS=1 the card was the limit (~92–98 % busy by the frame line). Two timing runs
(VICTORY_GPU_TIMING=1, VICTORY_D3D12_DRED=1), everything else equal:

PORT_CONSTANTS=1 PORT_CONSTANTS=0
card time by command, all kinds 55.1 ms 29.1 ms
indirect 31.1 ms (4,194) 12.2 ms (4,021)
dispatch 18.9 ms (3,195) 11.8 ms (3,009)
compute 55679a0547649d0b (tree culling) 4.45 ms < 0.6 ms

Without timing: 13.8 fps / 72 ms → about 22 fps / 45 ms, card ~75 % busy, no crash.
With port 1 on, the in-place heap is in system memory, so every shader touching it reads over PCIe, and
the ~1,440 indirect executions a frame with in-place arguments are each clamped alone after a full wait
(VICTORY_PORT_CONSTANTS_ORDER). Early on (when the CPU was the limit) port 1 measured a net win for me;
once the switches below cut the CPU side it became a large loss.

Other measurements from the same machine, same scene:

  • VICTORY_D3D12_DRED=0 instead of light: GPU ~45 → ~35 ms a frame (matches Belobug's change to
    request light DRED for diagnostic launches only).
  • VICTORY_UP_QUEUE=1: A/B (VICTORY_AB=20,VICTORY_UP_QUEUE), 73.5 vs 76.8 ms mean, every "on" phase
    faster than the "off" phases beside it.
  • VICTORY_UPSCALER=6 on Series S: CPU prep 38.5 → 29.7 ms, copy-back 26.4 → 22.8 ms, but the UI is
    drawn at the wrong size.
  • VICTORY_CARD_WINDOWS_MB=1024 vs 3584: same fps, ~2 GB more free RAM.
  • Series X with the same settings: 18.3 fps / 54.6 ms, ~1.2 GB RAM free.
  • Windows PageCombining on: crash at the first screen every launch; off: fine.

Possible new issue with port 1 off: glossy window surfaces sometimes draw over the player character.

Note for anyone experimenting: executing in-place indirect arguments with no clamp hangs NVIDIA cards
(the clamp also cuts dispatch x to 65,535; the title asks for up to 115,200 groups).

Diagnostic excerpt

PORT_CONSTANTS=1 (normal run):
INFO victory_gpu::host: 13.9 fps, 72.1 ms/frame (29.7 preparing: copies 10.7 ms 47.2 MB, textures 1.0 ms 23.9 MB; 5.7 on the GPU; 21.5 copying back 26.2 MB), 4436 draws/frame
INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 2.2 ms (the card about 97% busy by this count)
INFO victory_gpu::copystat: memory: 22372 MB private (21465 MB of it in memory; the PC has 1789 MB free and 10081 MB left to commit)

PORT_CONSTANTS=0 (normal run):
INFO victory_gpu::host: 22.0 fps, 45.5 ms/frame (37.2 preparing: copies 11.1 ms 49.4 MB, textures 0.7 ms 18.4 MB; 0.4 on the GPU; 17.8 copying back 22.3 MB), 4492 draws/frame
INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 10.5 ms (the card about 77% busy by this count)
INFO victory_gpu::copystat: memory: 22953 MB private (19282 MB of it in memory; the PC has 4266 MB free and 7738 MB left to commit)

Timing runs (VICTORY_GPU_TIMING=1, VICTORY_D3D12_DRED=1), card time by command:
PORT_CONSTANTS=1: all 1093 kinds together: 55.1 ms a frame; indirect 31.1 ms in 4194, dispatch 18.9 ms in 3195, mesh 2.9 ms in 351
PORT_CONSTANTS=0: all 1072 kinds together: 29.1 ms a frame; indirect 12.2 ms in 4021, dispatch 11.8 ms in 3009, mesh 2.7 ms in 356
**@⁠SquillyBoi** on GitHub · 2026-11-27 01:59 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/115) ### Vice-Tay build 4e3e366 (diag) ### Hardware and graphics driver i9-14900K (32 threads), RTX 3080 Ti 12 GB (Resizable BAR on), 32 GB RAM, Windows 11, driver 421.01 ### How to reproduce Series S, `VICTORY_OUTPUT=1920x1080`, `scripts/play.ps1 -Machine 4070` plus `-More @{VICTORY_PORT_CONSTANTS='1'; VICTORY_PORT_DESCRIPTORS='1'; VICTORY_PORT_CBV='1'; VICTORY_PORT_GUARD='1'; VICTORY_PORT_JOURNAL='1'}` (the renderer patches as Belobug's README recommends them). Prison dorm after loading in, camera still. ### What you observed With `VICTORY_PORT_CONSTANTS=1` the card was the limit (~92–98 % busy by the frame line). Two timing runs (`VICTORY_GPU_TIMING=1`, `VICTORY_D3D12_DRED=1`), everything else equal: | | PORT_CONSTANTS=1 | PORT_CONSTANTS=0 | |---|---|---| | card time by command, all kinds | 55.1 ms | 29.1 ms | | indirect | 31.1 ms (4,194) | 12.2 ms (4,021) | | dispatch | 18.9 ms (3,195) | 11.8 ms (3,009) | | compute 55679a0547649d0b (tree culling) | 4.45 ms | < 0.6 ms | Without timing: 13.8 fps / 72 ms → about 22 fps / 45 ms, card ~75 % busy, no crash. With port 1 on, the in-place heap is in system memory, so every shader touching it reads over PCIe, and the ~1,440 indirect executions a frame with in-place arguments are each clamped alone after a full wait (`VICTORY_PORT_CONSTANTS_ORDER`). Early on (when the CPU was the limit) port 1 measured a net win for me; once the switches below cut the CPU side it became a large loss. Other measurements from the same machine, same scene: - `VICTORY_D3D12_DRED=0` instead of `light`: GPU ~45 → ~35 ms a frame (matches Belobug's change to request light DRED for diagnostic launches only). - `VICTORY_UP_QUEUE=1`: A/B (`VICTORY_AB=20,VICTORY_UP_QUEUE`), 73.5 vs 76.8 ms mean, every "on" phase faster than the "off" phases beside it. - `VICTORY_UPSCALER=6` on Series S: CPU prep 38.5 → 29.7 ms, copy-back 26.4 → 22.8 ms, but the UI is drawn at the wrong size. - `VICTORY_CARD_WINDOWS_MB=1024` vs 3584: same fps, ~2 GB more free RAM. - Series X with the same settings: 18.3 fps / 54.6 ms, ~1.2 GB RAM free. - Windows `PageCombining` on: crash at the first screen every launch; off: fine. Possible new issue with port 1 off: glossy window surfaces sometimes draw over the player character. Note for anyone experimenting: executing in-place indirect arguments with no clamp hangs NVIDIA cards (the clamp also cuts dispatch x to 65,535; the title asks for up to 115,200 groups). ### Diagnostic excerpt ```text PORT_CONSTANTS=1 (normal run): INFO victory_gpu::host: 13.9 fps, 72.1 ms/frame (29.7 preparing: copies 10.7 ms 47.2 MB, textures 1.0 ms 23.9 MB; 5.7 on the GPU; 21.5 copying back 26.2 MB), 4436 draws/frame INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 2.2 ms (the card about 97% busy by this count) INFO victory_gpu::copystat: memory: 22372 MB private (21465 MB of it in memory; the PC has 1789 MB free and 10081 MB left to commit) PORT_CONSTANTS=0 (normal run): INFO victory_gpu::host: 22.0 fps, 45.5 ms/frame (37.2 preparing: copies 11.1 ms 49.4 MB, textures 0.7 ms 18.4 MB; 0.4 on the GPU; 17.8 copying back 22.3 MB), 4492 draws/frame INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 10.5 ms (the card about 77% busy by this count) INFO victory_gpu::copystat: memory: 22953 MB private (19282 MB of it in memory; the PC has 4266 MB free and 7738 MB left to commit) Timing runs (VICTORY_GPU_TIMING=1, VICTORY_D3D12_DRED=1), card time by command: PORT_CONSTANTS=1: all 1093 kinds together: 55.1 ms a frame; indirect 31.1 ms in 4194, dispatch 18.9 ms in 3195, mesh 2.9 ms in 351 PORT_CONSTANTS=0: all 1072 kinds together: 29.1 ms a frame; indirect 12.2 ms in 4021, dispatch 11.8 ms in 3009, mesh 2.7 ms in 356 ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:11:12 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 02:10 UTC · original

Thanks for isolating port 1 in the dorm on the RTX 3080 Ti. The drop from 55.1 to 29.1 ms of GPU command time, especially indirect work from 31.1 to 12.2 ms, gives us a useful case for keeping VICTORY_PORT_CONSTANTS opt-in. The current Vice-Tay launcher leaves it unset. I’m treating the DRED timing and the odd window reflections as separate observations. If the reflection overlap reproduces on current main with port 1 off, a screenshot from the same camera angle and the nearby draw diagnostics would help pin it down.

**@⁠TaynanGT** on GitHub · 2026-11-27 02:10 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/115#issuecomment-7207894037) Thanks for isolating port 1 in the dorm on the RTX 3080 Ti. The drop from 55.1 to 29.1 ms of GPU command time, especially indirect work from 31.1 to 12.2 ms, gives us a useful case for keeping `VICTORY_PORT_CONSTANTS` opt-in. The current Vice-Tay launcher leaves it unset. I’m treating the DRED timing and the odd window reflections as separate observations. If the reflection overlap reproduces on current `main` with port 1 off, a screenshot from the same camera angle and the nearby draw diagnostics would help pin it down.
Author
Owner

@⁠SquillyBoi on GitHub · 2026-11-27 06:18 UTC · original

Follow-up from more testing. All three issues below show up on a plain play.ps1 -Machine 4070 -Console series-s -Safe run (only VICTORY_OUTPUT=1920x1080 added). I couldn't find the root cause of any of them, but here's what I ruled out so you don't have to repeat it:

1. Frosted window glass drawn over the character
The blur sits in a band inside her silhouette (head, neck, shoulder edge) where she overlaps a window, a few low-res tiles wide, not her whole body. Every window, every run. Still there with: -RayTracing, the title's FidelityFX upscaler and VICTORY_UPSCALER=6, VICTORY_PORT_DESCRIPTORS_CHECK=all + _EVERY=1, VICTORY_DEPTH_TWINS off (that only added random squares and broke lighting), and VICTORY_WAVE_WIDE=1. Best guess: a coarse/tiled depth in the see-through pass. Shaders by name: PS_*_PBR_MATERIAL_BLURTRANSMISSION, CS_AlphaTransmissionDepthTile*.

2. Eye reflections and smeared window reflections
With RT off, the title's ray-traced reflection passes (~591 a frame) are dropped and their outputs keep old contents: stale eyes, stretched/smeared room reflections in windows. With -RayTracing the eyes are correct (but ~10 fps). VICTORY_RT_RESOLVE=1 + VICTORY_AMBIENT_REFLECT=1 (AMBIENT_REFLECT_IN=CS_RaytracingResolve) didn't visibly fix it. Idea: clear (or fill with something neutral) what the skipped passes would have written.

3. New: flat shards and huge wedge triangles (NVIDIA?)
In the jail, once the character first moves, every few frames there's either a cloud of flat-shaded angular shards across the room/ceiling, or a giant dark triangle over half the screen with its sides converging to one point, plus smaller orange/beige shards near characters. Clean frames in between; it never stops. Same with VICTORY_PORT_DESCRIPTORS=0, all three upscalers (title's, FidelityFX, VICTORY_DLSS), frame gen on/off (it was there before frame gen), and RT on/off.
Possible lead from every log since at least 2ba58b5: host view heap capped at 1000000; views past it read a null slot count=1245184. The heap asks 1,245,184 views against NVIDIA's 1,000,000; views past the cap read zeros, which would fit triangles collapsing toward one point. Dynamic slots stay around 71,000 of 2^18 with 0 refused.

Recordings and frames are kept locally per the asset policy. Happy to record a full video, give timestamps, or run a capture / VICTORY_WALLS_TRACE / any switch you want me to try.

**@⁠SquillyBoi** on GitHub · 2026-11-27 06:18 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/115#issuecomment-7211415041) Follow-up from more testing. All three issues below show up on a plain `play.ps1 -Machine 4070 -Console series-s -Safe` run (only `VICTORY_OUTPUT=1920x1080` added). I couldn't find the root cause of any of them, but here's what I ruled out so you don't have to repeat it: **1. Frosted window glass drawn over the character** The blur sits in a band inside her silhouette (head, neck, shoulder edge) where she overlaps a window, a few low-res tiles wide, not her whole body. Every window, every run. Still there with: `-RayTracing`, the title's FidelityFX upscaler and `VICTORY_UPSCALER=6`, `VICTORY_PORT_DESCRIPTORS_CHECK=all` + `_EVERY=1`, `VICTORY_DEPTH_TWINS` off (that only added random squares and broke lighting), and `VICTORY_WAVE_WIDE=1`. Best guess: a coarse/tiled depth in the see-through pass. Shaders by name: `PS_*_PBR_MATERIAL_BLURTRANSMISSION`, `CS_AlphaTransmissionDepthTile*`. **2. Eye reflections and smeared window reflections** With RT off, the title's ray-traced reflection passes (~591 a frame) are dropped and their outputs keep old contents: stale eyes, stretched/smeared room reflections in windows. With `-RayTracing` the eyes are correct (but ~10 fps). `VICTORY_RT_RESOLVE=1` + `VICTORY_AMBIENT_REFLECT=1` (`AMBIENT_REFLECT_IN=CS_RaytracingResolve`) didn't visibly fix it. Idea: clear (or fill with something neutral) what the skipped passes would have written. **3. New: flat shards and huge wedge triangles (NVIDIA?)** In the jail, once the character first moves, every few frames there's either a cloud of flat-shaded angular shards across the room/ceiling, or a giant dark triangle over half the screen with its sides converging to one point, plus smaller orange/beige shards near characters. Clean frames in between; it never stops. Same with `VICTORY_PORT_DESCRIPTORS=0`, all three upscalers (title's, FidelityFX, `VICTORY_DLSS`), frame gen on/off (it was there before frame gen), and RT on/off. Possible lead from every log since at least `2ba58b5`: `host view heap capped at 1000000; views past it read a null slot count=1245184`. The heap asks 1,245,184 views against NVIDIA's 1,000,000; views past the cap read zeros, which would fit triangles collapsing toward one point. Dynamic slots stay around 71,000 of 2^18 with 0 refused. Recordings and frames are kept locally per the asset policy. Happy to record a full video, give timestamps, or run a capture / `VICTORY_WALLS_TRACE` / any switch you want me to try.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 06:26 UTC · original

Thanks for keeping the 1080p -Safe setup fixed, @⁠SquillyBoi. The narrow silhouette band across those settings points us to the transmission depth inputs for the glass. The RT-on eye result gives us a reference for a fallback that writes the skipped reflection outputs. Your resolve test leaves that output question open.

For the jail wedges, I checked the heap warning in the code. When the host caps the heap, guest view slots past the fitted range read null. The dynamic pool’s refusal counter covers a separate range. An operations listing from a frame with a wedge would give us a draw or recipe to check against that lead.

**@⁠TaynanGT** on GitHub · 2026-11-27 06:26 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/115#issuecomment-7211524788) Thanks for keeping the 1080p `-Safe` setup fixed, @⁠SquillyBoi. The narrow silhouette band across those settings points us to the transmission depth inputs for the glass. The RT-on eye result gives us a reference for a fallback that writes the skipped reflection outputs. Your resolve test leaves that output question open. For the jail wedges, I checked the heap warning in the code. When the host caps the heap, guest view slots past the fitted range read null. The dynamic pool’s refusal counter covers a separate range. An operations listing from a frame with a wedge would give us a draw or recipe to check against that lead.
Author
Owner

@⁠cafeoh on GitHub · 2026-11-27 16:10 UTC · original

Confirming on Series S, RTX 2080 Ti / Windows 10, ray tracing on: VICTORY_EARLY_DEPTH=1 removes the frosted-glass rectangle over Lucia at the cell window (the grainy/ghosting patch in front of the glass). The prepass PS_AlphaPrepass runs with DB_SHADER_CONTROL bit 12 (depth before shader) on the console, so forcing early depth matches the console and can only skip pixel work. No freeze in our run. Could it become the default?

**@⁠cafeoh** on GitHub · 2026-11-27 16:10 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/115#issuecomment-7222941726) Confirming on Series S, RTX 2080 Ti / Windows 10, ray tracing on: `VICTORY_EARLY_DEPTH=1` removes the frosted-glass rectangle over Lucia at the cell window (the grainy/ghosting patch in front of the glass). The prepass `PS_AlphaPrepass` runs with DB_SHADER_CONTROL bit 12 (depth before shader) on the console, so forcing early depth matches the console and can only skip pixel work. No freeze in our run. Could it become the default?
Author
Owner

@⁠cafeoh on GitHub · 2026-11-27 16:13 UTC · original

On the jail wedges: on our side (Series S, RTX 2080 Ti / Windows 10, Vice-Tay base + local switches), VICTORY_RELAY=0 removes them completely: free play from the café through the cell with inmates, no wedge seen; with the relay on they show in every run. Slowness is not it: other runs at 7-10 fps (RT on, or extra waits) still had them. The heap cap doesn't look like the cause either: Series X logs the same cap without wedges. This matches avatarmanz/VIctory-7900XTX#434 (the title rewrites some constant buffers after submitting the work that reads them, so early fills read old bytes) and avatarmanz#13. We're porting #434's approach (learn the late-written pages, make only those submissions wait) to keep the relay on, and will open a PR with numbers if it holds.

**@⁠cafeoh** on GitHub · 2026-11-27 16:13 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/115#issuecomment-7223003971) On the jail wedges: on our side (Series S, RTX 2080 Ti / Windows 10, Vice-Tay base + local switches), `VICTORY_RELAY=0` removes them completely: free play from the café through the cell with inmates, no wedge seen; with the relay on they show in every run. Slowness is not it: other runs at 7-10 fps (RT on, or extra waits) still had them. The heap cap doesn't look like the cause either: Series X logs the same cap without wedges. This matches avatarmanz/VIctory-7900XTX#434 (the title rewrites some constant buffers after submitting the work that reads them, so early fills read old bytes) and avatarmanz#13. We're porting #434's approach (learn the late-written pages, make only those submissions wait) to keep the relay on, and will open a PR with numbers if it holds.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 16:17 UTC · original

@⁠cafeoh The relay-off run and the Series X heap-cap control narrow down the wedges on your 2080 Ti. I’d review the targeted wait for late-written pages. For that comparison, use the same save and camera with relay on, relay on with the patch, and relay off.

The early-depth switch already follows the shader’s depth-order flag and excludes depth/stencil exports. I’d keep it opt-in until we have a matched moving-camera check on the glass and nearby alpha edges. Your cell-window result gives us a good place to start.

**@⁠TaynanGT** on GitHub · 2026-11-27 16:17 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/115#issuecomment-7223081894) @⁠cafeoh The relay-off run and the Series X heap-cap control narrow down the wedges on your 2080 Ti. I’d review the targeted wait for late-written pages. For that comparison, use the same save and camera with relay on, relay on with the patch, and relay off. The early-depth switch already follows the shader’s depth-order flag and excludes depth/stencil exports. I’d keep it opt-in until we have a matched moving-camera check on the glass and nearby alpha edges. Your cell-window result gives us a good place to start.
Author
Owner

@⁠cafeoh on GitHub · 2026-11-27 16:24 UTC · original

Update on the wedges: confirmed.

With the relay on, plus a port of avatarmanz/VIctory-7900XTX#434's idea, free play from the café through the cell shows no wedges.

How it works:

  • when a flight lands, each fill is compared with title memory;
  • the pages that differ are learned (~20-30 here, all written by the title after it sent the submission that reads them);
  • submissions with fills on those pages wait for the flights in the air.

Note on card steps: Vice-Tay's play.ps1 sets VICTORY_CARD_STEPS=2. #434's learning only runs inside card steps, but in our tree the plain relay has the same window, so our port hooks the relay itself.

The brute-force version is slow (~7 waits a frame, ~60-70 ms waited), so we're making it cheaper before opening a PR.

**@⁠cafeoh** on GitHub · 2026-11-27 16:24 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/115#issuecomment-7223225136) Update on the wedges: **confirmed.** With the relay on, plus a port of avatarmanz/VIctory-7900XTX#434's idea, free play from the café through the cell shows no wedges. How it works: - when a flight lands, each fill is compared with title memory; - the pages that differ are learned (~20-30 here, all written by the title after it sent the submission that reads them); - submissions with fills on those pages wait for the flights in the air. Note on card steps: Vice-Tay's `play.ps1` sets `VICTORY_CARD_STEPS=2`. #434's learning only runs inside card steps, but in our tree the plain relay has the same window, so our port hooks the relay itself. The brute-force version is slow (~7 waits a frame, ~60-70 ms waited), so we're making it cheaper before opening a PR.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 16:37 UTC · original

@⁠cafeoh That gives us the clean control with relay on. The 60–70 ms of added waiting makes the first version useful as a correctness baseline. Please keep the same route and camera for the cheaper version, and report how often the wait fires alongside the wedge check. That will show whether the narrower wait keeps the fix.

**@⁠TaynanGT** on GitHub · 2026-11-27 16:37 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/115#issuecomment-7223483508) @⁠cafeoh That gives us the clean control with relay on. The 60–70 ms of added waiting makes the first version useful as a correctness baseline. Please keep the same route and camera for the cheaper version, and report how often the wait fires alongside the wedge check. That will show whether the narrower wait keeps the fix.
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/TaynanGT--Vice-Tay#115
No description provided.