RTX 3080 Ti: renderer port 1 (VICTORY_PORT_CONSTANTS=1) halves GPU throughput on NVIDIA; 13.8 → 22 fps with it off #115
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay#115
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?
@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 4070plus-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=1the 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: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=0instead oflight: GPU ~45 → ~35 ms a frame (matches Belobug's change torequest 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" phasefaster than the "off" phases beside it.
VICTORY_UPSCALER=6on Series S: CPU prep 38.5 → 29.7 ms, copy-back 26.4 → 22.8 ms, but the UI isdrawn at the wrong size.
VICTORY_CARD_WINDOWS_MB=1024vs 3584: same fps, ~2 GB more free RAM.PageCombiningon: 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
@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_CONSTANTSopt-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 currentmainwith port 1 off, a screenshot from the same camera angle and the nearby draw diagnostics would help pin it down.@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 -Saferun (onlyVICTORY_OUTPUT=1920x1080added). 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 andVICTORY_UPSCALER=6,VICTORY_PORT_DESCRIPTORS_CHECK=all+_EVERY=1,VICTORY_DEPTH_TWINSoff (that only added random squares and broke lighting), andVICTORY_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
-RayTracingthe 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.@TaynanGT on GitHub · 2026-11-27 06:26 UTC · original
Thanks for keeping the 1080p
-Safesetup 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.
@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=1removes the frosted-glass rectangle over Lucia at the cell window (the grainy/ghosting patch in front of the glass). The prepassPS_AlphaPrepassruns 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:13 UTC · original
On the jail wedges: on our side (Series S, RTX 2080 Ti / Windows 10, Vice-Tay base + local switches),
VICTORY_RELAY=0removes 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.@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.
@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:
Note on card steps: Vice-Tay's
play.ps1setsVICTORY_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.
@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.