RTX 5060 Ti 16 GB + Ryzen 7 5800X, 32 GB, resizable BAR: unified-memory audit switches measured (WC_BAR, window grid, INPLACE) and a memory census #3935

Open
opened 2026-11-30 12:18:37 +00:00 by github-bot · 2 comments
Owner

@⁠schoperena on GitHub · 2026-11-30 12:14 UTC · original

A set of measurements for docs/unified-memory-audit.md, which lists several of these switches as "written and off, with no result recorded". Everything below is from one rig; the method is the same for every run. (AI-assisted with Claude Code: the runs, the log parsing and this write-up. Every number comes from the layer's own log lines.)

Rig and method

  • RTX 5060 Ti 16 GB, driver 621.40, PCIe 4.0 x8, resizable BAR on (BAR1 16,384 MiB, card memory the CPU maps supported=true), budget ~14.9 GB. Ryzen 7 5800X, 32 GB DDR4-3200, Windows 11 Pro 26300. The title's Xbox Series build v1.0.2.1.
  • main at 41adb551, release build, unless said otherwise. Two local builds were used besides: the window-grid and INPLACE runs carried the root-CBV change of section 2 (no effect on the default 4 MiB grid), and the WINDOWS_BAR 4096/6144 runs carried a 6144 default for big cards (see #2313; the 4096 runs set the switch explicitly). Series X, 2560x1440, DLSS Quality, frame generation off, ray tracing off, warm caches, the launcher's own switches.
  • Scripted 7-minute runs from the same save: Enter every 4 s from 8 to 140 s, then the game alone until 420 s. Counted from the first frame of 500 draws or more; fps samples are the ~5 s host: N fps lines. One run per setting unless marked; runs differ by about one fps and one GB between themselves on the same setting.

1. U3: one side for what the CPU only writes (VICTORY_WC_BAR, VICTORY_WINDOWS_BAR_MB)

none WC_BAR=1 + WINDOWS_BAR 3072 WC_BAR=1 + 6144 WINDOWS_BAR 4096 (2 runs) WINDOWS_BAR 6144 (2 runs)
Mean fps 16.6 19.1 19.9 19.6 / 19.7 18.7 / 20.4
ms a frame preparing (CPU) 48.9 39.8 37.5 39.6 / 38.5 41.4 / 37.8
ms a frame on the GPU 0.9 1.4 0.7 0.6 / 0.4 0.9 / 0.8
Shared with the card, peak / last (MB) 9047 / 7327 6876 / 4821 5595 / 3893 6752 / 4742, 6730 / 4725 6328 / 4424, 6210 / 4300
Commit, peak (MB) 30904 30069 28422 29979 / 29861 29341 / 28879
Texture line reached no yes no yes / yes no / no
  • The windows carry the gain: +3 fps and ~2.3-2.8 GB less shared memory. VICTORY_WC_BAR=1 on top adds no measurable frame rate and ~0.6 GB less shared memory. No flicker was seen in the 30 s screenshots, but runs were not watched live (cf. #553).
  • The windows are discussed in #2313 (default 4096 on 16 GB cards); the 6144 data is there too.

2. The window grid (VICTORY_WINDOW_KB=256, VICTORY_WINDOW_TAILS=1)

With WC_BAR=1 and WINDOWS_BAR_MB=3072, one run each:

4 MiB grid 256 KiB grid + tails
Mean fps 19.1 19.1
Host copies of title memory, peak (MB) 8268 7598
Shared with the card, peak (MB) 6876 7571
Working set, peak (MB) 22105 23303

Host copies 0.7 GB lower, but no lower process memory: no result worth a default here.

This run also had a local change: root constant buffer views asked for their copy with 64 KiB (shadow::find_any(address, 1 << 16) in draw.rs's root_view_len) instead of find(address, 1). As it stands, a root CBV outside buffer objects names its cell's long window (4 MiB plus the 2 MiB reach) although it reads 64 KiB at the most, which the finer grid cannot cut. It made no measurable difference in this run, so it is only an observation.

3. U5: in place (VICTORY_INPLACE=1)

With WC_BAR=1 and WINDOWS_BAR_MB=3072:

off VICTORY_INPLACE=1
Mean fps 19.1 12.1
ms a frame on the GPU 1.4 23.3
Working set, peak (MB) 22105 23950

The census line at the end: 80 windows 512 MB in place, 1702 view memory or not private memory committed whole, 0 refused by the host, 0 let go because their memory changed. On this PCIe 4.0 x8 card the GPU reading title memory across the bus costs far more than the copy saved, and most windows are view memory, which stage 1 turns down. No failed VirtualFree (error 87) was seen.

4. Memory census (diagnostics build, VICTORY_DUP_CENSUS=150, VICTORY_PROCESS_HEAPS=1)

With WC_BAR=1 and WINDOWS_BAR_MB=3072, in the world:

  • process memory: 29,958 MB private (22,918 MB in memory). At console addresses 4,963 MB private + 10,585 MB mapped; at host addresses 24,686 MB private + 7,860 MB mapped. Named 22,184 MB, unnamed 7,773 MB.
  • Host copies of title memory: 4,647 alive, 6,318 MB, of them 882 windows 5,340 MB. Of the windows alive, 1,967 MB lie between the lowest and highest address asked for in each; the 5,340 MB lie over 4,250 MB of title memory (the rest is in more than one window). 581 windows were asked for without a length, 3,486 MB.
  • Duplicate census: 4,019 MB of copies read; 2,786 MB of 64 KiB pieces all zeros (1,693 MB in windows, 1,093 MB in card copies); 394 copies the same as another whole, 157 MB; title memory under more than one copy, 827 MB.
  • The process's 10 heaps: 4,091 MB in blocks, 4,831 MB committed (740 MB free but kept). "Our own allocations": 1,958 MB in 1,509,271 blocks.

The zero pieces and the windows asked for without a length look like the largest share left of the bridge's commit on this rig.

5. The title's memory figure

XMemGetWorkingSetStatistics (which reports the process's commit as the title's use, audit 6.5): in a session of almost two hours (about 11 minutes of it in the world) the title asked fewer than 1,025 times (one log line, at asked=1, before the world). If the title budgets streaming from it, it does not ask often.

**@⁠schoperena** on GitHub · 2026-11-30 12:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3935) A set of measurements for `docs/unified-memory-audit.md`, which lists several of these switches as "written and off, with no result recorded". Everything below is from one rig; the method is the same for every run. (AI-assisted with Claude Code: the runs, the log parsing and this write-up. Every number comes from the layer's own log lines.) ## Rig and method - RTX 5060 Ti 16 GB, driver 621.40, **PCIe 4.0 x8**, resizable BAR on (BAR1 16,384 MiB, `card memory the CPU maps supported=true`), budget ~14.9 GB. Ryzen 7 5800X, 32 GB DDR4-3200, Windows 11 Pro 26300. The title's Xbox Series build v1.0.2.1. - `main` at `41adb551`, release build, unless said otherwise. Two local builds were used besides: the window-grid and `INPLACE` runs carried the root-CBV change of section 2 (no effect on the default 4 MiB grid), and the `WINDOWS_BAR` 4096/6144 runs carried a 6144 default for big cards (see #2313; the 4096 runs set the switch explicitly). Series X, 2560x1440, DLSS Quality, frame generation off, ray tracing off, warm caches, the launcher's own switches. - Scripted 7-minute runs from the same save: Enter every 4 s from 8 to 140 s, then the game alone until 420 s. Counted from the first frame of 500 draws or more; fps samples are the ~5 s `host: N fps` lines. One run per setting unless marked; runs differ by about one fps and one GB between themselves on the same setting. ## 1. U3: one side for what the CPU only writes (`VICTORY_WC_BAR`, `VICTORY_WINDOWS_BAR_MB`) | | none | WC_BAR=1 + WINDOWS_BAR 3072 | WC_BAR=1 + 6144 | WINDOWS_BAR 4096 (2 runs) | WINDOWS_BAR 6144 (2 runs) | |---|---|---|---|---|---| | Mean fps | 16.6 | 19.1 | 19.9 | 19.6 / 19.7 | 18.7 / 20.4 | | ms a frame preparing (CPU) | 48.9 | 39.8 | 37.5 | 39.6 / 38.5 | 41.4 / 37.8 | | ms a frame on the GPU | 0.9 | 1.4 | 0.7 | 0.6 / 0.4 | 0.9 / 0.8 | | Shared with the card, peak / last (MB) | 9047 / 7327 | 6876 / 4821 | 5595 / 3893 | 6752 / 4742, 6730 / 4725 | 6328 / 4424, 6210 / 4300 | | Commit, peak (MB) | 30904 | 30069 | 28422 | 29979 / 29861 | 29341 / 28879 | | Texture line reached | no | yes | no | yes / yes | no / no | - The windows carry the gain: +3 fps and ~2.3-2.8 GB less shared memory. `VICTORY_WC_BAR=1` on top adds no measurable frame rate and ~0.6 GB less shared memory. No flicker was seen in the 30 s screenshots, but runs were not watched live (cf. #553). - The windows are discussed in #2313 (default 4096 on 16 GB cards); the 6144 data is there too. ## 2. The window grid (`VICTORY_WINDOW_KB=256`, `VICTORY_WINDOW_TAILS=1`) With `WC_BAR=1` and `WINDOWS_BAR_MB=3072`, one run each: | | 4 MiB grid | 256 KiB grid + tails | |---|---|---| | Mean fps | 19.1 | 19.1 | | Host copies of title memory, peak (MB) | 8268 | 7598 | | Shared with the card, peak (MB) | 6876 | 7571 | | Working set, peak (MB) | 22105 | 23303 | Host copies 0.7 GB lower, but no lower process memory: no result worth a default here. This run also had a local change: root constant buffer views asked for their copy with 64 KiB (`shadow::find_any(address, 1 << 16)` in `draw.rs`'s `root_view_len`) instead of `find(address, 1)`. As it stands, a root CBV outside buffer objects names its cell's long window (4 MiB plus the 2 MiB reach) although it reads 64 KiB at the most, which the finer grid cannot cut. It made no measurable difference in this run, so it is only an observation. ## 3. U5: in place (`VICTORY_INPLACE=1`) With `WC_BAR=1` and `WINDOWS_BAR_MB=3072`: | | off | `VICTORY_INPLACE=1` | |---|---|---| | Mean fps | 19.1 | **12.1** | | ms a frame on the GPU | 1.4 | **23.3** | | Working set, peak (MB) | 22105 | 23950 | The census line at the end: `80 windows 512 MB` in place, `1702 view memory or not private memory committed whole`, `0 refused by the host`, `0 let go because their memory changed`. On this PCIe 4.0 x8 card the GPU reading title memory across the bus costs far more than the copy saved, and most windows are view memory, which stage 1 turns down. No failed `VirtualFree` (error 87) was seen. ## 4. Memory census (diagnostics build, `VICTORY_DUP_CENSUS=150`, `VICTORY_PROCESS_HEAPS=1`) With `WC_BAR=1` and `WINDOWS_BAR_MB=3072`, in the world: - `process memory`: 29,958 MB private (22,918 MB in memory). At console addresses 4,963 MB private + 10,585 MB mapped; at host addresses 24,686 MB private + 7,860 MB mapped. Named 22,184 MB, unnamed 7,773 MB. - Host copies of title memory: 4,647 alive, 6,318 MB, **of them 882 windows 5,340 MB**. Of the windows alive, 1,967 MB lie between the lowest and highest address asked for in each; the 5,340 MB lie over 4,250 MB of title memory (the rest is in more than one window). 581 windows were asked for without a length, 3,486 MB. - Duplicate census: 4,019 MB of copies read; **2,786 MB of 64 KiB pieces all zeros (1,693 MB in windows, 1,093 MB in card copies)**; 394 copies the same as another whole, 157 MB; title memory under more than one copy, 827 MB. - The process's 10 heaps: 4,091 MB in blocks, 4,831 MB committed (740 MB free but kept). "Our own allocations": 1,958 MB in 1,509,271 blocks. The zero pieces and the windows asked for without a length look like the largest share left of the bridge's commit on this rig. ## 5. The title's memory figure `XMemGetWorkingSetStatistics` (which reports the process's commit as the title's use, audit 6.5): in a session of almost two hours (about 11 minutes of it in the world) the title asked fewer than 1,025 times (one log line, at `asked=1`, before the world). If the title budgets streaming from it, it does not ask often.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 12:18:37 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 12:14 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-30 12:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3935#issuecomment-7278148856) 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

@⁠shurhundo on GitHub · 2026-11-30 15:40 UTC · original

PR #3723 (open) changes the exact subsystem section 4 measures: windows outside buffers, let go and rebuilt under idle-time pressure. It holds a window in use 10 s, one remade soon after its last let-go 20/40/60 s, instead of the 2-5 s idle time gives under pressure today. Its own benchmark claims 19% fewer windows built and 39% fewer rebuilt within 30 s, but admits it hasn't been checked against a real play session yet.

Two things worth connecting:

  • If it lands, future window counts here (the "882 windows 5,340 MB" line, duplicate census) will shift, so don't read that delta as some other switch's effect later.
  • This audit's method (scripted repeatable runs, one rig, log parsing) is exactly the play-session verification that PR is missing.

Not asking for a run, just flagging the two could use each other instead of each redoing the other's measurement work.

**@⁠shurhundo** on GitHub · 2026-11-30 15:40 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3935#issuecomment-7283398400) PR #3723 (open) changes the exact subsystem section 4 measures: windows outside buffers, let go and rebuilt under idle-time pressure. It holds a window in use 10 s, one remade soon after its last let-go 20/40/60 s, instead of the 2-5 s idle time gives under pressure today. Its own benchmark claims 19% fewer windows built and 39% fewer rebuilt within 30 s, but admits it hasn't been checked against a real play session yet. Two things worth connecting: - If it lands, future window counts here (the "882 windows 5,340 MB" line, duplicate census) will shift, so don't read that delta as some other switch's effect later. - This audit's method (scripted repeatable runs, one rig, log parsing) is exactly the play-session verification that PR is missing. Not asking for a run, just flagging the two could use each other instead of each redoing the other's measurement work.
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#3935
No description provided.