Record a longer session, the way to play and the switches tried on an RTX 5080 #364

Closed
maximecmb wants to merge 663 commits from upstream-pr/364 into main
maximecmb commented 2026-11-27 19:54:02 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by maximecmb on 2026-11-27T19:54:02Z.


Summary

Documentation only: docs/rtx5080-16gb.md gains what the runs past the opening cutscene showed on the same PC (RTX 5080 16 GB, Ryzen 7 9800X3D, 64 GB, Series S). The branch now has main merged in: the launcher change it was stacked on reached main through 374, so only the document differs.

  • Memory over a longer session. Two unattended runs of 500 s in the world: private memory 22 GB at one minute, 32 GB at seven, then level; 14 GB left to commit of 67.6 GB at the lowest in one run, 12.5 GB in the other. The layer's own memory line says what grew: windows outside buffers asked for without a length (2.3 to 5.3 GB), the lists' scratch memory, its own allocations.
  • Reaching play. Seven and a half minutes of cutscenes without a save; about two minutes with the save the title writes as the prologue begins. How the runs in play were matched (a copy of the data folder and of the warmed cache put back before each run, VICTORY_AB inside the run).
  • Where the time goes in play. The submitting thread works 33 ms of a 34.5 ms frame with the card idle behind it 14 ms; a VICTORY_PROFILE sample of that thread gives the shares.
  • Switches that were tried. Six existing switches changed inside one run each, then the two that looked faster run on their own.
  • One buffer copied whole every frame. VICTORY_WATCH_XMEM_ALLOC=1 in play, five whole runs, the last pair recorded. Left off.

The switches

Opening cutscene, two switches changing every 5 s inside one run, 7 full cycles each, diagnostics build of 225c945, -Machine 4070tisuper. Frame time with the switch on, less with it off:

Switch Frame time Cycles faster
VICTORY_ASK_SPREAD=1 +0.3 ms (± 0.7) 3 of 7
VICTORY_ASK_NORESET=1 +2.5 ms (± 0.8) 1 of 7
VICTORY_PORT_GUARD=1 +1.7 ms (± 0.8) 1 of 7
VICTORY_UP_QUEUE=1 +1.0 ms (± 0.8) 1 of 7
VICTORY_PORT_JOURNAL=1 −1.1 ms (± 0.4) 7 of 7
VICTORY_HELPER_PRIORITY=1 −0.75 ms (± 0.66) 5 of 7

Then recorded runs from one copy of the cache, fps median / p10:

Settings Runs
the preset 28.4 / 22.6 and 27.8 / 23.7
with VICTORY_PORT_JOURNAL=1 28.3 / 24.8
with VICTORY_HELPER_PRIORITY=1 27.9 / 23.4
with both 29.9 / 26.2 and 28.7 / 24.3

Neither switch shows alone across runs what it showed inside one. cores.rs keeps VICTORY_HELPER_PRIORITY off "until another processor measures it": on eight cores of one kind it is within the noise in three ways of measuring (inside a cutscene run, across runs, inside a played run).

The watched XMem buffer

In play one 21 MB XMemAllocDefault buffer is copied whole twice a frame, sent whole and fetched whole. With VICTORY_WATCH_XMEM_ALLOC=1 (off by default, read at allocation, so each line is a whole run from the same cache and save, -Machine auto), medians a frame:

Run Switch Copied whole Sent to the card Fetched back Pages found written
16 (e0cdb09) off 42.5 MB 58.6 MB 66.2 MB 5,540
17 on 0 MB 38.2 MB 69.3 MB 11,146
19 (fe7c6e5, recorded) off 42.5 MB 57.8 MB 56.6 MB 3,896
20 (recorded) on 0 MB 36.9 MB 56.7 MB 9,035

Preparing time at equal draws (the runs are played by hand, so a line is fitted on draws a frame and the distance between the runs taken): −2.6 ms (± 0.4) in the prison for 17 less 16; for 20 less 19, −1.8 ms (± 0.4) in the cell and corridors with the frame at the 30 fps cap in both, −1.0 ms (± 1.8) in the cutscene, −1.3 ms (± 1.2) with the frame at −2.3 ms (± 4.5) in the robbery and after, where the game runs at 19 fps. Adding VICTORY_WATCH_HEAP=1 (run 18) changes nothing more.

So the copy goes and preparing loses about 2 ms where it can be measured, but the frame rate does not move in those sections and nothing is settled where the frame is slowest. The document records it and proposes no change of default. Runs 19 and 20 were reviewed from one frame every 3 s: same picture in both, with the bright highlights of the robbery and rainbow patches on the ground and water in both (timestamps in the document).

What this does not cover

  • One PC. The longer runs are two; the profile is one run with the sampler's own cost in it.
  • The memory figures are with the diagnostics build, which counts allocations.
  • The recordings of the six runs across settings were reviewed (one frame every 5 to 10 s, same picture in all); the in-run comparisons of the first four switches were not recorded.
  • The watched-buffer runs are played, not scripted: they pass through the same places at different times and with a different camera, which is why they are compared at equal draws and by eye.

Verification

cargo test -p xtask (the switches named in the document are read in Rust) and cargo xtask policy pass. No code changes.

🤖 Generated with Claude Code

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5532331584 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/364). Originally posted by [maximecmb](https://github.com/maximecmb) on 2026-11-27T19:54:02Z. --- ## Summary Documentation only: `docs/rtx5080-16gb.md` gains what the runs past the opening cutscene showed on the same PC (RTX 5080 16 GB, Ryzen 7 9800X3D, 64 GB, Series S). The branch now has `main` merged in: the launcher change it was stacked on reached `main` through 374, so only the document differs. - **Memory over a longer session.** Two unattended runs of 500 s in the world: private memory 22 GB at one minute, 32 GB at seven, then level; 14 GB left to commit of 67.6 GB at the lowest in one run, 12.5 GB in the other. The layer's own memory line says what grew: windows outside buffers asked for without a length (2.3 to 5.3 GB), the lists' scratch memory, its own allocations. - **Reaching play.** Seven and a half minutes of cutscenes without a save; about two minutes with the save the title writes as the prologue begins. How the runs in play were matched (a copy of the data folder and of the warmed cache put back before each run, `VICTORY_AB` inside the run). - **Where the time goes in play.** The submitting thread works 33 ms of a 34.5 ms frame with the card idle behind it 14 ms; a `VICTORY_PROFILE` sample of that thread gives the shares. - **Switches that were tried.** Six existing switches changed inside one run each, then the two that looked faster run on their own. - **One buffer copied whole every frame.** `VICTORY_WATCH_XMEM_ALLOC=1` in play, five whole runs, the last pair recorded. Left off. ## The switches Opening cutscene, two switches changing every 5 s inside one run, 7 full cycles each, diagnostics build of `225c945`, `-Machine 4070tisuper`. Frame time with the switch on, less with it off: | Switch | Frame time | Cycles faster | |---|---|---| | `VICTORY_ASK_SPREAD=1` | +0.3 ms (± 0.7) | 3 of 7 | | `VICTORY_ASK_NORESET=1` | +2.5 ms (± 0.8) | 1 of 7 | | `VICTORY_PORT_GUARD=1` | +1.7 ms (± 0.8) | 1 of 7 | | `VICTORY_UP_QUEUE=1` | +1.0 ms (± 0.8) | 1 of 7 | | `VICTORY_PORT_JOURNAL=1` | −1.1 ms (± 0.4) | 7 of 7 | | `VICTORY_HELPER_PRIORITY=1` | −0.75 ms (± 0.66) | 5 of 7 | Then recorded runs from one copy of the cache, fps median / p10: | Settings | Runs | |---|---| | the preset | 28.4 / 22.6 and 27.8 / 23.7 | | with `VICTORY_PORT_JOURNAL=1` | 28.3 / 24.8 | | with `VICTORY_HELPER_PRIORITY=1` | 27.9 / 23.4 | | with both | 29.9 / 26.2 and 28.7 / 24.3 | Neither switch shows alone across runs what it showed inside one. `cores.rs` keeps `VICTORY_HELPER_PRIORITY` off "until another processor measures it": on eight cores of one kind it is within the noise in three ways of measuring (inside a cutscene run, across runs, inside a played run). ## The watched XMem buffer In play one 21 MB `XMemAllocDefault` buffer is copied whole twice a frame, sent whole and fetched whole. With `VICTORY_WATCH_XMEM_ALLOC=1` (off by default, read at allocation, so each line is a whole run from the same cache and save, `-Machine auto`), medians a frame: | Run | Switch | Copied whole | Sent to the card | Fetched back | Pages found written | |---|---|---|---|---|---| | 16 (`e0cdb09`) | off | 42.5 MB | 58.6 MB | 66.2 MB | 5,540 | | 17 | on | 0 MB | 38.2 MB | 69.3 MB | 11,146 | | 19 (`fe7c6e5`, recorded) | off | 42.5 MB | 57.8 MB | 56.6 MB | 3,896 | | 20 (recorded) | on | 0 MB | 36.9 MB | 56.7 MB | 9,035 | Preparing time at equal draws (the runs are played by hand, so a line is fitted on draws a frame and the distance between the runs taken): −2.6 ms (± 0.4) in the prison for 17 less 16; for 20 less 19, −1.8 ms (± 0.4) in the cell and corridors with the frame at the 30 fps cap in both, −1.0 ms (± 1.8) in the cutscene, −1.3 ms (± 1.2) with the frame at −2.3 ms (± 4.5) in the robbery and after, where the game runs at 19 fps. Adding `VICTORY_WATCH_HEAP=1` (run 18) changes nothing more. So the copy goes and preparing loses about 2 ms where it can be measured, but the frame rate does not move in those sections and nothing is settled where the frame is slowest. The document records it and proposes no change of default. Runs 19 and 20 were reviewed from one frame every 3 s: same picture in both, with the bright highlights of the robbery and rainbow patches on the ground and water in both (timestamps in the document). ## What this does not cover - One PC. The longer runs are two; the profile is one run with the sampler's own cost in it. - The memory figures are with the diagnostics build, which counts allocations. - The recordings of the six runs across settings were reviewed (one frame every 5 to 10 s, same picture in all); the in-run comparisons of the first four switches were not recorded. - The watched-buffer runs are played, not scripted: they pass through the same places at different times and with a different camera, which is why they are compared at equal draws and by eye. ## Verification `cargo test -p xtask` (the switches named in the document are read in Rust) and `cargo xtask policy` pass. No code changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
TaynanGT commented 2026-11-29 11:37:50 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T11:37:50Z.


Thanks for documenting the longer sessions and keeping this PR limited to measurements. Please preserve the revision, route, cache setup and distinction between private memory, commit headroom and the layer's own allocations. The switch experiments should remain observations from this hardware, not universal recommendations.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7255242377 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/364#issuecomment-7255242377). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-29T11:37:50Z. --- Thanks for documenting the longer sessions and keeping this PR limited to measurements. Please preserve the revision, route, cache setup and distinction between private memory, commit headroom and the layer's own allocations. The switch experiments should remain observations from this hardware, not universal recommendations.
TaynanGT commented 2026-11-30 17:11:16 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:11:16Z.


main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285856380 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/364#issuecomment-7285856380). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T17:11:16Z. --- `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
TaynanGT/Vice-Tay!364
No description provided.