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

Open
opened 2026-11-29 21:38:48 +00:00 by github-bot · 3 comments
Owner

@⁠Arian1192 on GitHub · 2026-11-29 21:33 UTC · original

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:

per frame, medians (run 20261129-200559, release f889bb07) ms
frame time 72.9
submitting thread, in its submissions 65.2
— refreshes of host copies (inside the lists' steps) 25.3
— copies in the card's memory 9.2
— rest of the lists' steps 7.6
— asking the write watch (1.0 of it finding what to ask) 5.4
— copies and fills 5.3
— planning steps done on the card 4.1
card time of the title's lists (cardmeter) ~34

nvidia-smi dmon -s put during 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 over f889bb07 to split them. Medians, 6k+ draws band, runs 20261129-204533 and -211229:

  • Refreshes in front of submissions, the threads' part (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.
  • Flushes of few among the steps: ~23 a frame, 1.9 ms. The one flush of many (the heap's buffer views, ~2,600 refreshes): 0.6 ms.
  • ~820 updates a frame, ~88-110 us each (74-91 ms of all threads), 60-65 MB copied, ~115 of them copy nothing.
  • How watch::writes answered, per frame: ~815 from the range asked ahead, ~560 known by their bits, ~215-258 by the guards (view memory), ~41 by GetWriteWatch, ~330 not watched (guarded = false).
  • The guards' askings: ~215 a frame, nearly all telling written blocks (~985 written 64 KiB blocks ≈ 63 MB, the bytes copied). 48.7 ms of all threads, of which 38.4 ms waiting for the guards' lock and only 3.6 ms in protect (VirtualProtect + cover). Only ~2 a frame found nothing written, so this is not the same range asked again in vain.
  • Copying stale pages: 21-23 ms of all threads. Textures brought up to date beside them: ~14 ms.

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_new answering 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:

  • RAM 2666 → 3200 MT/s dual channel (XMP): no measurable gain (measured on another VIctory fork, VI-BR-PORT, 27/11).
  • The card is busy ~34 ms of a 73 ms frame without frame generation. A faster GPU would wait longer.
  • Every extra draw adds work to one host thread (submissions, refreshes, guards): 17.2 fps at 1-3.5k draws vs 11.9 at 6k+. Single-thread speed and memory latency of the CPU set the ceiling. More helper threads do not help, because they contend on the guards' lock and the write watch.
  • With frame generation on (FSR 3), the base rate of 12-15 fps is too low for it to feel smooth.

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=2 with VICTORY_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

  • The diagnostics build does not compile at f889bb07: copystat.rs:1349-1352 (mb not found) and host.rs:9228/9270/9273 (Option<SubmissionTiming> called as a function).
  • shader_cache::tests::every_switch_of_the_translator_is_in_the_key fails at f889bb07 ("VICTORY_SCALAR_SPLITS is not read by the translator any more").
  • cargo clippy -p victory-gpu --all-targets --no-deps -- -D warnings reports 29 errors at f889bb07 (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 protect in guard, settle in guards(), publish, the write-fault path).

**@⁠Arian1192** on GitHub · 2026-11-29 21:33 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3303) ### 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: | per frame, medians (run 20261129-200559, release f889bb07) | ms | |---|---:| | frame time | 72.9 | | submitting thread, in its submissions | 65.2 | | — refreshes of host copies (inside the lists' steps) | 25.3 | | — copies in the card's memory | 9.2 | | — rest of the lists' steps | 7.6 | | — asking the write watch (1.0 of it finding what to ask) | 5.4 | | — copies and fills | 5.3 | | — planning steps done on the card | 4.1 | | card time of the title's lists (cardmeter) | ~34 | `nvidia-smi dmon -s put` during 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 over f889bb07 to split them. Medians, 6k+ draws band, runs 20261129-204533 and -211229: - **Refreshes in front of submissions, the threads' part (`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. - Flushes of few among the steps: ~23 a frame, 1.9 ms. The one flush of many (the heap's buffer views, ~2,600 refreshes): 0.6 ms. - ~820 updates a frame, ~88-110 us each (74-91 ms of all threads), 60-65 MB copied, ~115 of them copy nothing. - How `watch::writes` answered, per frame: ~815 from the range asked ahead, ~560 known by their bits, **~215-258 by the guards (view memory)**, ~41 by `GetWriteWatch`, ~330 not watched (`guarded = false`). - **The guards' askings: ~215 a frame, nearly all telling written blocks (~985 written 64 KiB blocks ≈ 63 MB, the bytes copied). 48.7 ms of all threads, of which 38.4 ms waiting for the guards' lock and only 3.6 ms in `protect` (VirtualProtect + cover).** Only ~2 a frame found nothing written, so this is not the same range asked again in vain. - Copying stale pages: 21-23 ms of all threads. Textures brought up to date beside them: ~14 ms. ### 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_new` answering 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: - RAM 2666 → 3200 MT/s dual channel (XMP): no measurable gain (measured on another VIctory fork, VI-BR-PORT, 27/11). - The card is busy ~34 ms of a 73 ms frame without frame generation. A faster GPU would wait longer. - Every extra draw adds work to one host thread (submissions, refreshes, guards): 17.2 fps at 1-3.5k draws vs 11.9 at 6k+. Single-thread speed and memory latency of the CPU set the ceiling. More helper threads do not help, because they contend on the guards' lock and the write watch. - With frame generation on (FSR 3), the base rate of 12-15 fps is too low for it to feel smooth. 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=2` with `VICTORY_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 - The diagnostics build does not compile at f889bb07: `copystat.rs:1349-1352` (`mb` not found) and `host.rs:9228/9270/9273` (`Option<SubmissionTiming>` called as a function). - `shader_cache::tests::every_switch_of_the_translator_is_in_the_key` fails at f889bb07 ("VICTORY_SCALAR_SPLITS is not read by the translator any more"). - `cargo clippy -p victory-gpu --all-targets --no-deps -- -D warnings` reports 29 errors at f889bb07 (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 `protect` in `guard`, `settle` in `guards()`, `publish`, the write-fault path).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 21:38:48 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-29 21:33 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-29 21:33 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3303#issuecomment-7262975551) 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

@⁠Arian1192 on GitHub · 2026-11-29 21:42 UTC · original

logs-9900kf-3080.zip

Logs attached (logs-9900kf-3080.zip, Windows user name replaced with <user>): four play logs from the script
launcher, all release f889bb07 with local opt-in counters (off by default):

  • victory-nvidia-20261129-200559.log: baseline (the numbers in the first table).
  • victory-nvidia-20261129-204533.log: VICTORY_REFRESH_COST=1 (refresh split, write-watch ways).
  • victory-nvidia-20261129-205935.log: VICTORY_WIDE_THREADS=2 with VICTORY_REFRESH_COST=1.
  • victory-nvidia-20261129-211229.log: VICTORY_REFRESH_COST=1 with the guards' counters.

No crash log: no run crashed, and there is no crashes.log in %LOCALAPPDATA%\VIctory\data\7952987A (nor in the
data_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.

**@⁠Arian1192** on GitHub · 2026-11-29 21:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3303#issuecomment-7263087283) [logs-9900kf-3080.zip](https://github.com/user-attachments/files/35584171/logs-9900kf-3080.zip) Logs attached (logs-9900kf-3080.zip, Windows user name replaced with `<user>`): four play logs from the script launcher, all release f889bb07 with local opt-in counters (off by default): - victory-nvidia-20261129-200559.log: baseline (the numbers in the first table). - victory-nvidia-20261129-204533.log: VICTORY_REFRESH_COST=1 (refresh split, write-watch ways). - victory-nvidia-20261129-205935.log: VICTORY_WIDE_THREADS=2 with VICTORY_REFRESH_COST=1. - victory-nvidia-20261129-211229.log: VICTORY_REFRESH_COST=1 with the guards' counters. No crash log: no run crashed, and there is no crashes.log in `%LOCALAPPDATA%\VIctory\data\7952987A` (nor in the data_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.
Author
Owner

@⁠Trillazill on GitHub · 2026-12-01 18:44 UTC · original

Same lock on a newer CPU. Measured on main 5fabb46e, with the waits seen directly in a timeline.

  • PC: Ryzen 9 7900 (12 cores / 24 threads), RTX 4080 16 GB, driver 617.42, 32 GB RAM, Windows 11.
  • Build: diagnostics build of main 5fabb46e. Series X, 4K output, DLSS off, frame generation off, ray tracing off.
  • Route: the prison cell after the opening cutscenes, walking and turning through the game's key file (W, J, S, L every 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):

  • 4,894 copy refreshes in the first recording, 566 ms of all threads. 373 ms of that is waiting, and 291 ms (1,805 waits) is the guards' lock in watch::guards < watch::guard < watch::writes. Another 53 ms waits in watch::guards < watch::publish_range < watch::writes.
  • About 160 us a wait, with 8 wide threads and the submitting thread taking refreshes. The waits mostly end when another thread's refresh ends, not when a fault or a title thread lets go.
  • The frame line agrees: 15-18 ms a frame waiting for the guards and about 8 ms changing protections, all threads.
  • The card was about 90 % busy on this route, so the frame is close to both limits.

Switches tried on the same route:

runs fps submitting thread refreshes guards wait (all threads)
main as play sets it 3 30.8 / 32.2 / 30.6 26.8 / 25.9 / 28.4 ms 9.8 / 9.1 / 9.9 ms 15-18 ms
VICTORY_WIDE_THREADS=4 4 31.9 / 34.7 / 34.7 / 29.5 26.6 / 24.4 / 24.2 / 26.0 ms 9.2 / 8.4 / 8.2 / 9.2 ms 6.1-8.2 ms
  • VICTORY_WIDE_THREADS=4 halved 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 (with VICTORY_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.
  • Also on this route, two runs each: #4775 (switches on against off) and #4295 (against main) changed neither fps nor the submitting thread. #4775 took about 2 ms of card work off a frame.

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 with 0xc0000005 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.

**@⁠Trillazill** on GitHub · 2026-12-01 18:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3303#issuecomment-7321461454) Same lock on a newer CPU. Measured on main 5fabb46e, with the waits seen directly in a timeline. - **PC:** Ryzen 9 7900 (12 cores / 24 threads), RTX 4080 16 GB, driver 617.42, 32 GB RAM, Windows 11. - **Build:** diagnostics build of main 5fabb46e. Series X, 4K output, DLSS off, frame generation off, ray tracing off. - **Route:** the prison cell after the opening cutscenes, walking and turning through the game's key file (`W`, `J`, `S`, `L` every 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): - 4,894 copy refreshes in the first recording, 566 ms of all threads. 373 ms of that is waiting, and 291 ms (1,805 waits) is the guards' lock in `watch::guards < watch::guard < watch::writes`. Another 53 ms waits in `watch::guards < watch::publish_range < watch::writes`. - About 160 us a wait, with 8 wide threads and the submitting thread taking refreshes. The waits mostly end when another thread's refresh ends, not when a fault or a title thread lets go. - The frame line agrees: 15-18 ms a frame waiting for the guards and about 8 ms changing protections, all threads. - The card was about 90 % busy on this route, so the frame is close to both limits. **Switches tried on the same route:** | | runs | fps | submitting thread | refreshes | guards wait (all threads) | |---|---:|---|---|---|---| | main as `play` sets it | 3 | 30.8 / 32.2 / 30.6 | 26.8 / 25.9 / 28.4 ms | 9.8 / 9.1 / 9.9 ms | 15-18 ms | | `VICTORY_WIDE_THREADS=4` | 4 | 31.9 / 34.7 / 34.7 / 29.5 | 26.6 / 24.4 / 24.2 / 26.0 ms | 9.2 / 8.4 / 8.2 / 9.2 ms | 6.1-8.2 ms | - `VICTORY_WIDE_THREADS=4` halved 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` (with `VICTORY_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. - Also on this route, two runs each: #4775 (switches on against off) and #4295 (against main) changed neither fps nor the submitting thread. #4775 took about 2 ms of card work off a frame. **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 with `0xc0000005 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.
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#3303
No description provided.