RTX 4070 12 GB: 4.6 fps on main, 18 fps on a tree from 0a43566 with NVIDIA commits and small card buffers #213
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#213
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?
@m335671 on GitHub · 2026-11-26 11:52 UTC · original
A data point from NVIDIA, in case it helps. In the first room, Series S,
main722c0e1(diagnostics build) runs at about 4.6 fps withscripts\play.ps1's settings. A tree built on your0a43566runs at about 18 fps there with small buffers on the card. That tree is codec-d'scool_fox, which adds an NVIDIA wave32 lowering, 32 GB residency budgets and a few other commits.Machine: RTX 4070 12 GB (32-lane waves), driver 32.0.16.2124, Ryzen 9 7900, 32 GB, Windows 11 Pro 26300. Built from source, warm shader cache. From a save to the first room, then idle, scripted presses. One run per row, means once settled.
main722c0e1(diag)play.ps1's set (not-Safe)main722c0e1(diag)VICTORY_PORT_DESCRIPTORS=1 VICTORY_PORT_CONSTANTS=1+ a minimal set¹main722c0e1(diag)VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_CARD_BUFFERS_MB=1536+ the minimal setcool_foxf4b48ad(release)cool_foxf4b48ad(release)MIN_KB=64+CARD_BUFFERS_MB=1536+ the minimal set¹
VICTORY_INDIRECT_WINDOW=1 VICTORY_LEVELS_ON_DEMAND=1 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_TEXTURE_BACK=1 VICTORY_LATE_WAIT=3 VICTORY_AMBIENT=0.6.PORT_CONSTANTS=1onmain, the log shows1 regions of the title's graphics memory in place (185 MB). The frame time then goes up, though the GPU time drops.mainwithMIN_KB=64, the copying-back time goes up to about 232 ms. Oncool_foxthe same switch brings it down to about 25 ms. I haven't bisected which commit between0a43566and722c0e1makes the difference.cool_fox's own launcher setsMIN_KB=64with 512 MB of card buffers, which ran at 2.7–2.9 fps here. The 1536 MB cap is what makes it fast.Not done: a bisection, Series X, release build of
main, more than one run per row.AI use: the runs were done on my machine. Claude Code (Claude Opus 5.5) built the trees, ran them, read the logs and wrote this issue.
@Lancito01 on GitHub · 2026-11-26 12:51 UTC · original
Another NVIDIA data point that agrees with this report.
Setup: RTX 3080 10 GB, 32 GB RAM, Windows 11. Built from source: cool_fox
f4b48ad, diag profile. Ran with--console series-s.Variables: your minimal set (
INDIRECT_WINDOW=1 LEVELS_ON_DEMAND=1 TEXTURE_NO_WAIT=1 CARD_REHASH_RUNS=1 TEXTURE_BACK=1 LATE_WAIT=3 AMBIENT=0.6) plusCARD_BUFFERS_MIN_KB=64andCARD_BUFFERS_MB=1536.Result:
Comparison: a main-line build (
a9400a6, without the card-buffer pair, Series X) in the same cutscene ran at 420–580 ms. That's about 5× slower on this card.Caveats:
@rafaconvaitis on GitHub · 2026-11-26 14:09 UTC · original
I reproduced most of the improvement on another RTX 4070 12 GB. My machine has a Ryzen 9 5900X, 32 GB RAM, driver 616.64 and the Xbox title version 1.0.2.1. I built
f4b48adin release with only a local keyboard test hook and used the nine variables in the issue with Series S and a warm cache. The log confirmedcard_buffers_min_kb=64andcard_buffers_max_mb=1536. The presentation surface was 1920×1080.There were 12 periodic summaries in each interval and a median of zero pending PSOs. The cell summaries ranged from 5.1 to 13.9 FPS. I could turn the camera, walk through the corridor and reach the gate. Lighting and clothing still had visible artifacts. The game session ran for about ten minutes and I ended the test after gathering the measurements.
In my prior Series S run on this same PC, the cell median was 2.90 FPS with the 512 MiB cap and a different set of flags. This is a comparison of profiles. In the 1,536 MiB run, the process peaked at 10.37 GiB dedicated and 5.54 GiB shared GPU memory sampled by Windows. The local budget limited some allocations before the configured cap was filled. One line recorded 10,543 MiB in use against a 10,858 MiB budget, with 936 MiB of card copies.
@DumbBoy10 on GitHub · 2026-11-26 14:15 UTC · original
Another NVIDIA data point, on
c9c932c(ports 5–7). It agrees that port 1 costs more than it saves on NVIDIA, and it splits out which ports and which other default cause it. One run per setting.Machine: RTX 5070 12 GB (driver 617.42), Ryzen 7 5800X3D, 32 GB DDR4, Windows 11 Pro 26200.
Tree: a local merge: trustno1-coder/VIctory-NVIDIA
033be27with this fork'smainatc9c932cmerged on top (this fork'sTablePlanand two-plane compose; VIctory-NVIDIA's half views carried intotables()). Built withdiag.Settings: Series S, render scale 0.5, VIctory-NVIDIA's ray-tracing skip list,
VICTORY_D3D12_DRED=faults,VICTORY_THIN_THREADS=6, warm shader cache.Scene: the opening cutscene, medians of the frame lines with 500+ draws.
VIEW_BYTES000VICTORY_PROFILEsample, the recording threads mostly sit on their condition variable and the title's threads wait about 30% more. Ports 2, 6 and 7 alone don't add the wait, and don't make the frame faster either. My reading is that the card reading title memory in place from system RAM is the slow part here, much like #95 found before moving it into VRAM. I didn't separate port 1 from port 5.VICTORY_VIEW_BYTES(on by default) is over half of recording on this card.descriptor::host::view_home→shadow::exactheld about 56% of the recording threads' samples, underbuffer_copy,buffer_srvandmake_twinned.VICTORY_VIEW_BYTES=0takes the frame from 106 to 77 ms. My guess isoff_elementsseeing VIctory-NVIDIA'sraw_viewssetting, so far more views count as off their elements, but I haven't checked that or the picture with it off.VICTORY_D3D12_DRED=1cost about 10% here (92 → 83 ms), throughHostList::note_opbuilding a text for every command.VICTORY_TIMELINEcrashed this tree twice right as it began recording (exit 139), whileVICTORY_PROFILEalone was fine.AI-assisted (Claude Code); no game data.
@rafaconvaitis on GitHub · 2026-11-26 15:19 UTC · original
Follow-up on the RTX 4070 12 GB reproduction above. I ran two fresh copies of the same v3 save on the same
f4b48adrelease executable and Series S profile with 64 KiB minimum / 1,536 MiB cap. The second run added onlyVICTORY_RELAY_COPY=1andVICTORY_FETCH_CHECK=1. Both runs had a warm cache and zero pending PSOs in the measured cell windows.The queue moved the copy-back metric down by roughly a third in this pair. The overall frame time went up slightly. I ran one pass per profile. The verifier averaged 3.47 discrepancies and 3.44 pieces found whole on refetch per frame across 57 one-second summaries in the cell.
The game progression differed. In the control, LT focused Yolanda and the officer route worked. At the cashier, a logged ten-second hold showed cashier focus with the aim instruction still visible. I observed no reticle or next objective, although the game kept rendering and responding to movement. That resembles the post-prison report in #13. The log showed no allocation failure or device loss at that point.
With the two switches, LT raised the aim and moved the tutorial to the right stick. I aligned the camera with the cashier, held LT again, got the X prompt, pressed X and received the money objective. Pressing Y at the counter collected the money and the story moved into the police sequence. The game wrote SARC0015 v4. I closed the process, hash-checked a copy of the new checkpoint and started a fresh process with it. It reached the same coastal scene seen after the store. Uneven lighting, texture defects and incomplete character models are still visible. The two switches were tested together.
@sawetco on GitHub · 2026-11-26 16:27 UTC · original
On a 12 GB RTX 5070, 64 KiB gave the highest stationary FPS, but 1 MiB gave smoother movement outside Jason’s house. This adds a Series X free-roam comparison to the Series S prison results above.
Ryzen 5 7600X, 32 GB RAM, RTX 5070 12 GB, NVIDIA 621.40 on Windows. Every row used the same local diagnostics build based on
d78024bwith #48 and the wave32 cascade-shadow fix, the same warmed shader and D3D12 pipeline caches, four pipeline workers, and 2560 × 1440 for both scene and presentation. Frame generation was off. The runtime log confirmed all three buffer limits.Each row pools two 30-second walks from copies of the same save. We matched the porch on screen before sending the same 18 timed stick inputs. FPS is the number of native Present intervals divided by their total duration. Camera positions could diverge by the end. The 1 MiB walks averaged 7.03 and 5.22 FPS individually, with a longest interval of 2.08 s.
The 1 MiB row uses
VICTORY_CARD_BUFFERS_MIN_MB=1andVICTORY_CARD_BUFFERS_MB=1536, withVICTORY_CARD_BUFFERS_MIN_KBunset. The KiB setting overrides the MiB threshold if left over from a previous run. Credit for this pair goes to trustno1-coder’s NVIDIA launcher.In a separate, manually played session with the 1 MiB profile, the player observed about 10 FPS with the camera still, 12 looking down while moving, and 7–9 looking around or driving normally. Those are player observations. The table comes from the instrumented walks.
@Lancito01 on GitHub · 2026-11-26 16:30 UTC · original
Follow-up from the same RTX 3080 10 GB / 32 GB machine. I narrowed down where the NVIDIA gain comes from.
Setup: every run uses the same environment, your minimal set plus
CARD_BUFFERS_MIN_KB=64andCARD_BUFFERS_MB=1536. All are Series S and the same prison-yard cutscene at about 4.4k draws. Times are after pipeline building finished; one run each.a9400a6a9400a6+VICTORY_WAVE_WIDE=1a9400a6+ wave-wide for only cool_fox's two 64-thread scene-kernel digests0a43566(cool_fox's base)e05d463, plus its Series S two-plane fix)f4b48adWhat this shows:
0a43566.0a43566. Its message lists two-plane compose, fallback heaps, TablePlan, a residency guard, 256 MiB DirectStorage and WaitOnAddress fence wakes. GPU time drops about 12× in that one commit.I haven't split that commit up further. If anyone has those pieces as separate patches, the GPU-side ones (fallback heaps and TablePlan in
draw.rs/host.rs, and thequeue/fencechanges) are where I'd look first.