i9-9900KF + RTX 3080 10 GB (PCIe 3.0, no ReBAR), Series S: CPU-bound on the submitting thread; its refreshes wait on the guards' lock #3303
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Arian1192 on 2026-11-29T21:33:44Z.
What you see
Series S, 1080p output, DLSS Quality, no frame generation, no cap: 13.7 fps median in the open world (7.4 min of stable 3D after shader warm-up). By draws per frame: 17.2 fps at 1-3.5k, 15.2 at 3.5-6k, 11.9 at 6k+. Shaders and pipelines were warm: the host pipeline library loaded 4,184 and made 163, so no pipeline queue during the measurement. Frame times are unstable in busy streets. Terrain and textures stream in late, and the picture is soft.
The frame is the layer's submitting thread, not the card and not the RAM:
f889bb07)nvidia-smi dmon -s putduring play: SM 66 % median, memory 5 %, 166 W, rxpci 3.8 GB/s median (7.0 GB/s p90). The card waits for the submitting thread.Where the refreshes' 25 ms go
I added opt-in counters (
VICTORY_REFRESH_COST=1, off by default) on a local branch overf889bb07to split them. Medians, 6k+ draws band, runs 20261129-204533 and -211229:Batch::refresh_front→wide_each_scoped→Shadow::update): 17-20 ms wall. The walk over the steps that plans them (copy_spans, front spans) is 1.4 ms, and "finding what to ask" another 1.0. So precomputing per-list summaries at close could save ~2.4 ms at most here.watch::writesanswered, per frame: ~815 from the range asked ahead, ~560 known by their bits, ~215-258 by the guards (view memory), ~41 byGetWriteWatch, ~330 not watched (guarded = false).protect(VirtualProtect + cover). Only ~2 a frame found nothing written, so this is not the same range asked again in vain.What changed it and what did not (single manual runs, so indications only)
VICTORY_WIDE_THREADS=2(6 by default on 16 logical processors), run -205935, 3.2 min: each guard asking 197 → 81 us, kern+guards 59 → 24 ms of all threads, the refreshes' wall time the same (22.5 → 23.2 ms), fps the same. The work inflates under contention; fewer helpers free CPU without losing time.VICTORY_KEEP_GUARD_LOCK=1, run -215103 (2.2 min, heavier scenes, 324 guard askings a frame): not better, 10.9 vs 12.5 fps at 8-9.5k draws. Streaming felt slower. Inconclusive because of the scene; left off.VICTORY_GUARD_HOT=50, run -220321 (too short for fps): time protecting 3.6 → 0.7 ms, but ~19 ms of guards' lock waiting stayed.VICTORY_GAP_SIFT(local:nothing_newanswering through the gaps of pending shader writes) halved the updates (1,500 → 750) and moved the refreshes 27.4 → 24.7 ms, but the thread and the fps stayed the same.The open PRs I read (#2647, #2504, #2776, #2795, #2854, #2796, #2812) do not touch the cost inside
guard()or the guards' lock. #2719 (Proton, Zen 2) reports guard cost too; this is native Windows with the lock wait measured.Why the CPU matters, not only RAM and the GPU
On this PC, RAM and GPU settings moved little, and the CPU-side thread decides the frame:
So for low-end and older CPUs the layer's per-submission CPU cost is the limit. Earlier reports with similar numbers: #2842 (i7-10700KF + 4090, victory-submit ~63 ms), #1427 (Ryzen 7600X + 3070, ~56 ms), #2602 (7900X3D + 3080, 50-60 ms).
GPU and driver
EVGA RTX 3080 XC3 10 GB, driver 621.14, PCIe 3.0 x16, Resizable BAR off (BAR1 256 MiB; VBIOS without ReBAR support), HAGS on.
CPU, RAM and Windows version
Intel Core i9-9900KF (8 cores / 16 threads, stock), Gigabyte Z390 AORUS PRO WIFI (BIOS F14a), 32 GB DDR4-3200 dual channel (2x16 GB, XMP), Windows 11 Home build 26300, page file fixed 16-24 GB (system-managed was 4 GB and pipelines failed with E_OUTOFMEMORY).
VIctory release or commit
f889bb07(v2026.11.29.02 hotfix merge), built locally (release,--locked), plus local opt-in diagnostic commits (counters only, off by default).Settings
Series S, output 1920x1080, DLSS Quality, frame generation off, ray tracing off, uncapped (
scripts\play-foxhound.ps1 -SeriesS -Dlss quality -FgType fsr -NoMenu).Switches added:
VICTORY_MEMORY_CARD_MB=3072,VICTORY_DSTORAGE_IO=direct,VICTORY_THIN_THREADS=6,VICTORY_LAND_THREADS=3,VICTORY_WIDE_SPIN=50,VICTORY_PIPELINE_WORKERS=12,VICTORY_PIPELINE_LOWEST=0,VICTORY_PIPELINE_SLOW=0,VICTORY_RAYMISS_KEEP=1(rainbow noise on glass without it),VICTORY_WAVE_WIDE_FALLBACK=0,VICTORY_TEXTURE_FIRST_UPLOAD_MB=0,VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298,2561af9577c47289,cabb87599722e59a.Logs
Attached:
logs-9900kf-3080.zip, four play logs with the user name replaced:victory-nvidia-20261129-200559.log: baseline.-204533:VICTORY_REFRESH_COST=1(refresh split and write-watch ways).-205935:VICTORY_WIDE_THREADS=2withVICTORY_REFRESH_COST=1.-211229: guard counters.No crash in any run, so there is no crash log. The counter lines are "refreshes' wall time on the submitting thread", "the updates' parts per frame" and "the guards' askings per frame".
Also found
f889bb07:copystat.rs:1349-1352(mbnot found) andhost.rs:9228/9270/9273(Option<SubmissionTiming>called as a function).shader_cache::tests::every_switch_of_the_translator_is_in_the_keyfails atf889bb07("VICTORY_SCALAR_SPLITS is not read by the translator any more").cargo clippy -p victory-gpu --all-targets --no-deps -- -D warningsreports 29 errors atf889bb07(unused items and variables).Are you working on a fix?
Not yet. I can send the opt-in counters as a [pr-diagnostics] pull request if they help. The next step I see is measuring who holds the guards' lock and for how long (the scan and
protectinguard,settleinguards(),publish, the write-fault path).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T21:33:54Z.
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.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Arian1192 on 2026-11-29T21:42:31Z.
logs-9900kf-3080.zip
Logs attached (logs-9900kf-3080.zip, Windows user name replaced with
<user>): four play logs from the scriptlauncher, all release
f889bb07with local opt-in counters (off by default):No crash log: no run crashed, and there is no crashes.log in
%LOCALAPPDATA%\VIctory\data\7952987A(nor in thedata_dir these runs used).
GPU: EVGA RTX 3080 XC3 10 GB, driver 621.14, PCIe 3.0 x16, no Resizable BAR. Windows 11 Home, build 26300.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Trillazill on 2026-12-01T18:44:46Z.
Same lock on a newer CPU. Measured on main
5fabb46e, with the waits seen directly in a timeline.5fabb46e. Series X, 4K output, DLSS off, frame generation off, ray tracing off.W,J,S,Levery 15 s), no other input. Numbers are medians of the 5 s lines from 170 s to 400 s after the start.Where the submitting thread's refreshes wait (
VICTORY_TIMELINE=250+320,5,..., 5 frames each, 26.4 ms a frame):watch::guards < watch::guard < watch::writes. Another 53 ms waits inwatch::guards < watch::publish_range < watch::writes.Switches tried on the same route:
playsets itVICTORY_WIDE_THREADS=4VICTORY_WIDE_THREADS=4halved the lock waiting. On average: 33.0 fps against 31.2, the submitting thread 25.3 ms against 27.0. The runs overlap (one 4-thread run was the slowest of all), so this is a lean, not a proven gain.VICTORY_GUARD_HOT(withVICTORY_AB=10,VICTORY_GUARD_HOT, one run, 12 phases on and 13 off) was worse: 39.7 ms a frame on average with it on, 35.3 off.What it does not show: what the lock's holders spend the time on, apart from the protection changes. A fix would have to keep the protection changes off the lock without bringing back #817.
Unrelated, but seen in the same runs: two runs of this build (one with
VICTORY_TIMELINE, one without any extra switch) stopped in the opening cutscene at about 157 s with0xc0000005 at victory-image-...dll+0xa1fa8e (read ...: nothing mapped there), the same address both times.AI use: Claude Code (Claude Opus 5.5) drove the runs through the game's key file, parsed the logs and the timeline and wrote this comment.