tuning-v3: from 132 to 99 ms a frame on an i5-10400F (CBV_ROOT, CBV_CARD, measured switches) #3102

Closed
github-bot wants to merge 73 commits from github-bot/gh-3102 into main AGit
Owner

@⁠Sumo1433 on GitHub · 2026-11-29 20:01 UTC · original
Sumo1433:tuning-v3 → main · +10901 −1099 · 78 files · 56 commits · closed without merging

tuning-v3: how I got my 6-core PC from 132 to 99 ms a frame

Hi. I play on an i5-10400F, and for me the game was stuck around 7 real fps. For the last few days I've been digging into where the frame goes and trying things. This branch is what came out of it. I'm sharing it because some of it may help people with a similar CPU, and because I'd really like a second pair of eyes on it.

My PC: i5-10400F (6 cores / 12 threads), RTX 4070 12 GB, 32 GB DDR4-2666, Windows 11. In game: Series X mode, 1080p, DLSS Performance, frame generation 2X.

The branch is built on main d459907 from 28.11, so the 29.11 releases aren't in it.

Numbers

Same street, standing still, about 10,000 draws a frame:

Build ms per frame real fps with FG 2X
v2026.11.28.03 136–161 6–7 12–15
main d459907 132 7.5 ~15
this branch 99 ~10 ~20

That's still not 30 fps, but it's playable now. All of it was measured on my one PC, so take it as a data point, not a promise.

What actually holds the frame on a CPU like mine

The card is mostly idle. Two things matter:

  • The submitting thread prepares submissions one after another. If it works 110 ms a frame, the frame is at least 110 ms.
  • The THIN threads translate the game's command lists into D3D12 calls in parallel.

You can see which one is your wall in the log: compare that thread worked X ms with your ms/frame. For me they ended up almost equal, so the submitting thread was the thing to fix.

What helped

VICTORY_CBV_ROOT=1 (new here)

Most draws read their constants through descriptor tables, and those tables were being rebuilt for almost every draw, about 12,000 a frame for me. With this switch the shader translator reads those constants through root views (t240..t243) instead. The table stays the same and gets reused.

For me: 12,000 → 6,000 rebuilt tables a frame, and THIN CPU time went from 540–557 to 458 ms a frame.

Downside: the shader cache key changes, so the first start rebuilds the cache (--preload, about 20 minutes for me). After that, always start with the same switch.

VICTORY_CBV_CARD (new here, on by default)

This one came from reading my own logs after CBV_ROOT. Some of those constants are written by the game's compute shaders, so every frame the CPU sat and waited for the card to finish before it could copy them: about 26 ms in a single wait. Now the card does that copy itself, in the right order (needs VICTORY_CARD_STEPS=2, which is the default here).

A/B inside one run, 16 phases of 20 s each:

  • waits for the card: 41 → 3 ms a frame
  • submitting thread: 114 → 90 ms
  • frame: 120 → 99 ms, p90 155 → 108 ms
  • no device lost

It only does anything together with CBV_ROOT. VICTORY_CBV_CARD=0 turns it off.

VICTORY_THIN_THREADS

Going from 4 to 8 saved me 9.6 ms. 12 was no better than 8. If you have more cores, I'd start at logical threads minus 4 and try ±2. You can compare inside one run: VICTORY_THIN_THREADS=N, VICTORY_THIN_ACTIVE=M (M smaller), VICTORY_AB=20,VICTORY_THIN_MORE.

VICTORY_PORT_CONSTANTS=1

On my PC it took 12.8 ms off the submitting thread. But PR #2923 says it starves the card over PCIe and should stay off, and the original author saw it get worse on a 12 GB card. So I honestly don't know how it behaves on other machines. Please measure it on yours before keeping it.

Smaller ones I kept

  • VICTORY_SWEEP_ASIDE=1: −4 ms
  • VICTORY_LIST_VIEWS_KEEP=1: −2 ms
  • VICTORY_GUARDS_SHARD + VICTORY_SWEEP_ASYNC from #1925: −2.7 ms together, close to noise
  • VICTORY_SPARE_SCRATCH_MB=512, VICTORY_CARD_AWAKE=0: part of my base set, I didn't measure them separately

My launch switches:

--set VICTORY_THIN_THREADS=8 --set VICTORY_PORT_CONSTANTS=1 --set VICTORY_SPARE_SCRATCH_MB=512
--set VICTORY_CARD_AWAKE=0 --set VICTORY_LIST_VIEWS_KEEP=1 --set VICTORY_SWEEP_ASIDE=1
--set VICTORY_CBV_ROOT=1

If your PC is different

  • More cores: raise VICTORY_THIN_THREADS (see above).
  • Older board or slow PCIe: try with VICTORY_PORT_CONSTANTS off.
  • 16 GB of RAM: lower VICTORY_SPARE_SCRATCH_MB to 128–256. It's PC memory kept around for reuse.
  • Resizable BAR on: VICTORY_WC_BAR=runs was slower for me. I haven't checked VICTORY_WC_BAR=1.
  • AMD card: I only tested CBV_ROOT and CBV_CARD on NVIDIA. I'd be very curious what happens.

What didn't help me

  • VICTORY_GUARD_HOT=50 made it 4.6 ms slower.
  • VICTORY_WC_BAR=runs, VICTORY_INPLACE=1, VICTORY_LIST_VIEWS_TEXTURES=1: no gain.
  • VICTORY_PAGE_STAMPS=1, my own VICTORY_LAZY_READS=1, VICTORY_HEAP_ROUND=64, GUARD_REST, UNDER_WIDE, LAND_ECHO: within noise.
  • DLSS Quality instead of Performance: costs card time when the CPU is the limit anyway.
  • Extra frame generation on top (MFG Unlocker, Lossless Scaling): at ~10 real fps it looks bad.

How I measure

The scene keeps changing (5,000 to 11,000 draws a frame), so two separate runs can't really be compared. I compare inside one run:

  1. Build with diagnostics: cargo build --profile diag --features diagnostics -p victory.
  2. Start with --set VICTORY_AB=20,SWITCH_A,SWITCH_B. The combination changes every 20 seconds.
  3. Stand somewhere busy for 5–8 minutes.
  4. Run python scripts/ab.py <log>. It brings all phases to the same number of draws and prints one line per combination, with its spread.

If the difference is smaller than the spread, it's noise. I learned that the hard way: a lot of my "wins" disappeared once I started measuring like this.

Known problems

  • CBV_ROOT means a long first start and a shader cache separate from your other builds.
  • Once, textures were black for a few seconds at the start of a run, then they loaded. I haven't seen it since.
  • Two tests fail here, same as on the base: ambient::raise_opt_in_chroma_scrub… (an opt-in feature that's off) and bury_drops_retired_objects_asynchronously (flaky under load).
  • One PC, one person. That's the main reason I'm posting this.

If you want to help

I'd be happy to hear from anyone who tries it, good results or bad. Post your CPU and card, ms/frame and that thread worked before and after, and the ab.py output. A bad result is useful too: it shows where a switch should stay off. The submitting thread still takes about 90 of my 99 ms, so that's where I'm looking next. If you have ideas there, I'm all ears.

Thanks

Most of this branch is other people's work that I merged and measured. Thank you:

  • @⁠trustno1-coder, for the project and for keeping it open.
  • @⁠101Leafy for #1123, #1713, #1720, #1722, #1728, #1729, #1731, #1735.
  • @⁠yeedgrthfgv for #1418 and the sender fixes after it, and @⁠Biskwit for the card_take and off-line card steps commits in it.
  • @⁠steven-seagull27 (#1556), @⁠qlfu (#1358), @⁠ballsimulation (#501), @⁠icdmkg2 (#1609), @⁠Rafa7046 (#1662).
  • @⁠mikael-jarvinen (#1014), @⁠Amar-D3V (#1571, trees at a distance are back), @⁠paales (#1727, HDR10).
  • @⁠wtry-gta (#1925), @⁠vdkipnis (#1927), @⁠imad7x (#1044: my A/B runs grew out of the lab in that PR).
  • @⁠FIocker (#2062), @⁠OGShotz (#2116), @⁠birdneststream (#2226), @⁠RB-404 (#2248).
  • skornuta, for the memory stack (skornuta/victory-memory-stack 57fb136, GPL-3.0).

I wrote parts of my own code with AI tools (Claude, Codex, Gemini). Every switch here was checked in the game before I kept it.

**@⁠Sumo1433** on GitHub · 2026-11-29 20:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3102) `Sumo1433:tuning-v3` → `main` · +10901 −1099 · 78 files · 56 commits · closed without merging # tuning-v3: how I got my 6-core PC from 132 to 99 ms a frame Hi. I play on an i5-10400F, and for me the game was stuck around 7 real fps. For the last few days I've been digging into where the frame goes and trying things. This branch is what came out of it. I'm sharing it because some of it may help people with a similar CPU, and because I'd really like a second pair of eyes on it. My PC: i5-10400F (6 cores / 12 threads), RTX 4070 12 GB, 32 GB DDR4-2666, Windows 11. In game: Series X mode, 1080p, DLSS Performance, frame generation 2X. The branch is built on `main` d459907 from 28.11, so the 29.11 releases aren't in it. ## Numbers Same street, standing still, about 10,000 draws a frame: | Build | ms per frame | real fps | with FG 2X | |---|---|---|---| | v2026.11.28.03 | 136–161 | 6–7 | 12–15 | | main d459907 | 132 | 7.5 | ~15 | | this branch | 99 | ~10 | ~20 | That's still not 30 fps, but it's playable now. All of it was measured on my one PC, so take it as a data point, not a promise. ## What actually holds the frame on a CPU like mine The card is mostly idle. Two things matter: - The submitting thread prepares submissions one after another. If it works 110 ms a frame, the frame is at least 110 ms. - The THIN threads translate the game's command lists into D3D12 calls in parallel. You can see which one is your wall in the log: compare `that thread worked X ms` with your `ms/frame`. For me they ended up almost equal, so the submitting thread was the thing to fix. ## What helped ### VICTORY_CBV_ROOT=1 (new here) Most draws read their constants through descriptor tables, and those tables were being rebuilt for almost every draw, about 12,000 a frame for me. With this switch the shader translator reads those constants through root views (`t240..t243`) instead. The table stays the same and gets reused. For me: 12,000 → 6,000 rebuilt tables a frame, and THIN CPU time went from 540–557 to 458 ms a frame. Downside: the shader cache key changes, so the first start rebuilds the cache (`--preload`, about 20 minutes for me). After that, always start with the same switch. ### VICTORY_CBV_CARD (new here, on by default) This one came from reading my own logs after CBV_ROOT. Some of those constants are written by the game's compute shaders, so every frame the CPU sat and waited for the card to finish before it could copy them: about 26 ms in a single wait. Now the card does that copy itself, in the right order (needs `VICTORY_CARD_STEPS=2`, which is the default here). A/B inside one run, 16 phases of 20 s each: - waits for the card: 41 → 3 ms a frame - submitting thread: 114 → 90 ms - frame: 120 → 99 ms, p90 155 → 108 ms - no device lost It only does anything together with CBV_ROOT. `VICTORY_CBV_CARD=0` turns it off. ### VICTORY_THIN_THREADS Going from 4 to 8 saved me 9.6 ms. 12 was no better than 8. If you have more cores, I'd start at logical threads minus 4 and try ±2. You can compare inside one run: `VICTORY_THIN_THREADS=N`, `VICTORY_THIN_ACTIVE=M` (M smaller), `VICTORY_AB=20,VICTORY_THIN_MORE`. ### VICTORY_PORT_CONSTANTS=1 On my PC it took 12.8 ms off the submitting thread. But PR #2923 says it starves the card over PCIe and should stay off, and the original author saw it get worse on a 12 GB card. So I honestly don't know how it behaves on other machines. Please measure it on yours before keeping it. ### Smaller ones I kept - `VICTORY_SWEEP_ASIDE=1`: −4 ms - `VICTORY_LIST_VIEWS_KEEP=1`: −2 ms - `VICTORY_GUARDS_SHARD` + `VICTORY_SWEEP_ASYNC` from #1925: −2.7 ms together, close to noise - `VICTORY_SPARE_SCRATCH_MB=512`, `VICTORY_CARD_AWAKE=0`: part of my base set, I didn't measure them separately My launch switches: ``` --set VICTORY_THIN_THREADS=8 --set VICTORY_PORT_CONSTANTS=1 --set VICTORY_SPARE_SCRATCH_MB=512 --set VICTORY_CARD_AWAKE=0 --set VICTORY_LIST_VIEWS_KEEP=1 --set VICTORY_SWEEP_ASIDE=1 --set VICTORY_CBV_ROOT=1 ``` ## If your PC is different - More cores: raise `VICTORY_THIN_THREADS` (see above). - Older board or slow PCIe: try with `VICTORY_PORT_CONSTANTS` off. - 16 GB of RAM: lower `VICTORY_SPARE_SCRATCH_MB` to 128–256. It's PC memory kept around for reuse. - Resizable BAR on: `VICTORY_WC_BAR=runs` was slower for me. I haven't checked `VICTORY_WC_BAR=1`. - AMD card: I only tested CBV_ROOT and CBV_CARD on NVIDIA. I'd be very curious what happens. ## What didn't help me - `VICTORY_GUARD_HOT=50` made it 4.6 ms slower. - `VICTORY_WC_BAR=runs`, `VICTORY_INPLACE=1`, `VICTORY_LIST_VIEWS_TEXTURES=1`: no gain. - `VICTORY_PAGE_STAMPS=1`, my own `VICTORY_LAZY_READS=1`, `VICTORY_HEAP_ROUND=64`, `GUARD_REST`, `UNDER_WIDE`, `LAND_ECHO`: within noise. - DLSS Quality instead of Performance: costs card time when the CPU is the limit anyway. - Extra frame generation on top (MFG Unlocker, Lossless Scaling): at ~10 real fps it looks bad. ## How I measure The scene keeps changing (5,000 to 11,000 draws a frame), so two separate runs can't really be compared. I compare inside one run: 1. Build with diagnostics: `cargo build --profile diag --features diagnostics -p victory`. 2. Start with `--set VICTORY_AB=20,SWITCH_A,SWITCH_B`. The combination changes every 20 seconds. 3. Stand somewhere busy for 5–8 minutes. 4. Run `python scripts/ab.py <log>`. It brings all phases to the same number of draws and prints one line per combination, with its spread. If the difference is smaller than the spread, it's noise. I learned that the hard way: a lot of my "wins" disappeared once I started measuring like this. ## Known problems - CBV_ROOT means a long first start and a shader cache separate from your other builds. - Once, textures were black for a few seconds at the start of a run, then they loaded. I haven't seen it since. - Two tests fail here, same as on the base: `ambient::raise_opt_in_chroma_scrub…` (an opt-in feature that's off) and `bury_drops_retired_objects_asynchronously` (flaky under load). - One PC, one person. That's the main reason I'm posting this. ## If you want to help I'd be happy to hear from anyone who tries it, good results or bad. Post your CPU and card, `ms/frame` and `that thread worked` before and after, and the `ab.py` output. A bad result is useful too: it shows where a switch should stay off. The submitting thread still takes about 90 of my 99 ms, so that's where I'm looking next. If you have ideas there, I'm all ears. ## Thanks Most of this branch is other people's work that I merged and measured. Thank you: - @⁠trustno1-coder, for the project and for keeping it open. - @⁠101Leafy for #1123, #1713, #1720, #1722, #1728, #1729, #1731, #1735. - @⁠yeedgrthfgv for #1418 and the sender fixes after it, and @⁠Biskwit for the card_take and off-line card steps commits in it. - @⁠steven-seagull27 (#1556), @⁠qlfu (#1358), @⁠ballsimulation (#501), @⁠icdmkg2 (#1609), @⁠Rafa7046 (#1662). - @⁠mikael-jarvinen (#1014), @⁠Amar-D3V (#1571, trees at a distance are back), @⁠paales (#1727, HDR10). - @⁠wtry-gta (#1925), @⁠vdkipnis (#1927), @⁠imad7x (#1044: my A/B runs grew out of the lab in that PR). - @⁠FIocker (#2062), @⁠OGShotz (#2116), @⁠birdneststream (#2226), @⁠RB-404 (#2248). - skornuta, for the memory stack (skornuta/victory-memory-stack 57fb136, GPL-3.0). I wrote parts of my own code with AI tools (Claude, Codex, Gemini). Every switch here was checked in the game before I kept it.
The constants heap (174 MB) is declared written by the skinning passes in
every submission, so it was compared whole after each of ~12 submissions a
frame (2.2 GB of the card's reads to find ~2.6 MB written), and every
constant fill from it counted as blocked by flights and was planned onto
the card (`card_steps`, 7-12 ms a frame on the submitting thread).

VICTORY_LAZY_COMPARE_MB=<MiB>: of a card copy at least this large, a
submission compares only the pieces found written lately
(VICTORY_LAZY_HOT compares, 64), the left-out pieces about to be sent up
(their rehash is held back, so the compare still sees older shader
writes), and the next VICTORY_LAZY_SWEEP (128) left-out pieces in turn.
Those compares store their hashes (mode 2). The write-back itself is
unchanged: what is found is fetched and merged as before.

VICTORY_LAZY_NARROW=1 (with the above): where submission steps wait for
flights or are done on the card in their order (late_blocked, card_steps,
cut_for, the relay's wait), such a copy counts as written only on those
pieces. Refreshes still see every declared write.

Accepted: a piece written for the first time reaches title memory, and is
read as the title has it, only once the sweep finds it (~2 frames).

Series S, DLSS Performance, 30 fps cap, RTX 4070, same walk, one build:
frame time by draws per frame, switches off -> on:
4-6k 53.7 -> 50.4 ms, 6-7k 56.8 -> 54.4, 7-8k 59.2 -> 57.1,
8-9.5k 62.7 -> 58.8; submitting thread 49.5 -> 45.8 ms, its planning of
steps on the card 7.4 -> 1.7 ms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
hot_within joined a hot piece onto the last range of `out` whenever that
range ended at or after the piece's start, without checking that it began
at or before it. `out` already holds other ranges there (Line::joined seeds
it with the texture read-backs, the line's rebuild with other flights'
ranges), so a hot piece lying below one of them was dropped, and with
VICTORY_LAZY_NARROW=1 steps that read it did not wait for the flight that
writes it. Found and fixed in review by Machad3x on #501.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cause: the thread that prepares and sends submissions is the wall of a
Series S frame. Timeline split-tl-1 covered 10 settled frames of 47.4 ms.
That thread worked 44.9 ms of each: about 40 on the CPU and 8 in waits
(3.1 for the wide helpers, 1.9 on the guards mutex, 1.1 for the heaps'
records). Some 7 ms of it came after the submission was prepared, and
nothing of the next submission's preparing needs it:
- recording and sending the list that brings copies in the card's
  memory up to date, and the compare list;
- the wait for the heaps' records, and the slots that wait for textures;
- ExecuteCommandLists.
The title's present thread waited 15.5 ms a frame for it.

Change: two threads in a row. The line's thread prepares; victory-send
sends. N+1 is prepared while N is sent. On by default; with
VICTORY_SUBMIT_SPLIT=0 one thread does both, as before. With VICTORY_AB
it is switched on and off while the title runs. It needs the relay's
second stage, fetches on the copy queue and send::own (play.ps1's
defaults).
- The line's thread prepares as before. Then it takes what goes up to
  copies in the card's memory (card_take: card_dirty, the first hashes'
  buffers and send::take, numbered under QUEUE_ORDER). It also puts the
  placed copies' bytes into their references.
- It then publishes the submission under the submission lock: its fence
  value, and its flight (with no compare plan yet), bottom-of-pipe writes
  and declared ranges in the line. The rest goes to the sender's queue.
- The sender records and sends what was taken (card_record) and gives
  the flight its compare plan before the lists go to the queue. Then it
  waits for the heaps' records, makes the slots that waited for
  textures, sends the lists and signals the fence value.
- Every other submission (waited for, the present's copy, ours) first
  waits under the submission lock until everything published has been
  sent (wait_sent).
- The line's thread no longer resets landed lists after each send.
  late_helper already does that after every landing.

Invariants for a published submission N, i.e. one prepared and not yet
sent:
- Before N is published, all of its CPU work is done:
  - title memory its steps wrote;
  - its declared and picked shader writes, with their snapshots;
  - its bytes for copies in the card's memory, taken. The next
    submission's refreshes of those CPU sides do not reach N, which
    send::own already relies on;
  - its placed copies' references.
- What N+1's preparing may assume about N before N is sent: N is in the
  air.
  - Everything that asks what flights write sees N: the line's declared
    ranges, the copies done on the card, bottom-of-pipe writes for value
    waits, writes_pending. So N+1 waits for N to land wherever it would
    have waited for a sent N, or lets the card do the read behind it.
  - Such a wait ends. The relay lands N once the card reaches N's
    fence, which it cannot do before N is sent, and the sender needs
    nothing the waiting thread holds.
- What N has not done yet: nothing of it is on the queue, its compare plan
  does not exist (only the landing reads it, after the card has run N),
  and the slots waiting for its textures are not made.
- Order on the queue: only the sender sends published submissions, in
  publishing order. Everything else that goes to the queue waits for
  wait_sent under the submission lock and gets a higher fence value. The
  relay's fetches go to the copy queue and take their order from their
  plans' numbers, never from the drawing queue.
- Locks: the sender never takes the submission lock and never waits for
  the line's thread. It waits only for landings of flights it has sent
  (the compare area's reset) and for the heaps' records thread. A holder
  of the submission lock may therefore wait for published flights to
  land: a title thread at a blocking fence wait, a waited-for
  submission, or the line's thread.
- If N's send fails or is dropped: it is never dropped. The sender is the
  only consumer of its queue and does every item. A failed
  ExecuteCommandLists or Signal, a lost card or a panic on the sender
  fails the host (crate::host::fail), as on the single thread before.

Measured on 7cae3c5 (before the card windows in BAR and FSR4 LAND_NOT)
(Series S, prologue cell, i9-12900K + RTX 4090, play.ps1's 4090
settings). All comparisons are in-run arms: VICTORY_AB=15 switches the
split every 15 s, and these are the medians of the settled phases'
median frame times. A null A/B with identical arms (split-pl-1) differed
by ~1 ms. Launches of the same exe differed by up to 5 ms today, so no
conclusion here rests on comparing launches.

| exe, launches | phases off / on | frame, off -> on | that thread worked | title waited at presents | card idle |
|---|---|---|---|---|---|
| split-a1 (ab-1, ab-2) | 6 / 7 | 54.5 (52.8-56.7) -> 51.8 (49.9-53.2) | 52.5 -> 49.8 | 20.7 -> 16.4 | 24.3 -> 21.6 |
| split-a2 (warm-a2, ab2-1) | 5 / 7 | 52.2 (51.4-55.5) -> 50.0 (48.6-53.4) | 50.8 -> 47.9 | 19.3 -> 15.4 | 19.1 -> 15.4 |
| all four launches (frame lines) | | 53.1 -> 50.5 | 51.9 -> 48.9 | 19.9 -> 16.0 | 22.4 -> 18.9 |

a2 is a1 plus the landed lists left to late_helper; that changed nothing
measurable. The sender worked 8.1 ms a frame. Of the ~7 ms it took over,
the line's thread lost only ~3. Its remaining parts grew because more
flights are in the air while the card gets busier: title bytes under
flights' writes 6.0 -> 7.1, planning steps done on the card +1.3, and
card_dirty 3.0 -> 5.1 in timeline split-on-tl. The present thread still
waits ~16 ms a frame for the line's thread, which is still the wall.
The process's CPU rose 474 -> 484 ms a frame.

Checks:
- cargo clippy --workspace --all-targets --locked -- -D warnings, with and
  without --all-features;
- cargo test --workspace --locked: all pass. victory-loader's
  console_insn::a_clzero_loop_becomes_plain_stores failed in one run and
  passed on the rerun; this commit does not touch that crate;
- cargo xtask policy.
No new unit test: the switch is read once per process, and the crate's own
tests run without the relay, which the split needs. The line's ordering
tests (queue/behind.rs) are unchanged and pass.

Gate (ssfps-gate.ps1, exe on 74d2497 with this; VICTORY_WINDOWS_BAR_MB
and LAND_NOT on as vt-go sets them; frames 1300-3600, ms a frame):
| launch | frame | submitting thread | title waited at presents | card busy |
|---|---|---|---|---|
| cold (fresh cache) | 46.0 | 41.9 | 19.0 | 19.9 |
| warm1 | 43.8 | 40.7 | 15.4 | 18.6 |
| warm2 | 43.3 | 40.0 | 14.4 | 22.7 |
| warm3 | 44.4 | 41.1 | 15.6 | 20.7 |
| 15-min session | 43.5 | 40.9 | 15.5 | 18.8 |
- The session's minute medians are 40.5-43.7 ms with no drift; private
  memory stays flat at 24.6-25.7 GB.
- No device loss. Head intact.
- Banding is clean (25-47 colours/1000 px on the wall).
- The left-wall silhouette appeared in warm1 only: 1 of the gate's 5
  launches, and 1 of all 13 launches of this work (split on, off or
  switching), the known ~10% rate.
These frame times are not a before/after: other agents' launches were
waiting in the run queue meanwhile. The effect is the in-run table above.

(cherry picked from commit d5bd9d82cf3a470597a541bae60285f486073d00 of
https://github.com/Biskwit/VIctory-reloaded, GPL-3.0-or-later)

Ported to trustno1-coder/VIctory-NVIDIA by yeedgrthfgv:
- Off by default here: on only with VICTORY_SUBMIT_SPLIT=1 (read once
  through asked_for!, so VICTORY_AB can still switch it in diagnostics
  builds), and still only with VICTORY_RELAY=2, VICTORY_RELAY_COPY=1 and
  send::own. With it unset nothing is published, wait_sent returns on an
  atomic before taking any lock, and every submission takes the old path.
- Conflicts resolved against this tree: the streamline upscale/hudless tags
  stay where they were (after wait_sent); the two-queues plan counts a
  submission whose card bytes were taken for the sender as carded; the
  published path uses texback::Back::range for its texture read-backs,
  gives its Batch back for reuse, and the sender keeps the heap_marks
  timing, span_lists(fence) and timeline::sent's compute flag; the
  AFTER_SEND count stays.
- The timeline's calibration submission (host/stamps.rs, diagnostics)
  also waits for published submissions first, so its fence value cannot
  pass a published one.
- Dropped the cherry-picked late texture read-back test, which this tree
  does not have.
Also carried, off by default, in Keel62155/VIctoryUnified.

Co-authored-by: yeedgrthfgv <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cause: the line's thread, the wall of a frame, was busy 37 of 39 ms
(timeline split-now-tl-3, reloaded 240b6c5b). Two parts of that need
nothing the next submission's preparing waits for:
- the descriptor slots that steps done on the card fill: 1.9 ms on the
  line, about 11,000 slots a frame, 7 ms on all threads;
- closing 127 new host lists a frame, each empty, when they are taken for
  a title's list: 1.1 ms.
The sender was idle 30 ms a frame.

Change (VICTORY_OFF_LINE, on by default with VICTORY_SUBMIT_SPLIT;
=0: as before; VICTORY_AB can switch it while the title runs):
- The slots of a published submission's card steps are kept (Slots) and
  written by the sender. It writes them after that submission's heaps'
  records and before its lists go to the queue, on the records' threads,
  which it has just waited for.
  - On the line's own pool (split-o1), they made its title bytes under
    flights' writes 1.4 ms longer: -0.8 ms in all (split-now-off-1..3).
  - Synchronous submissions write theirs on the line, as before.
- A host list is closed when it is reset after running (recycle, mostly on
  victory-late-wait), and kept idle as closed.
  - detach takes it closed; one taken open is closed there as before.
  - The cuts, which record into a fresh list, reset a closed one again.
- Invariants are written at off_line():
  - Nothing of the preparing reads host heap slots.
  - Slots are written in publishing order. A synchronous submission
    writes its own only after wait_sent.
  - The title rewrites such a slot only after the submission's fence.

Why "after the records" matches the console: a card step that fills a
slot stands for the title's GPU write into its descriptor heap, done when
the submission runs. The records the title copied for it were written by
its CPU before it submitted. So on the console the fill always lands after
them. Before, the line wrote the slot ahead of the records' round, so a
record of that slot made before the submission could have overwritten
the fill. Now the sender writes it after the round.

Counted (VICTORY_SLOT_ORDER_COUNT=1, diagnostics only, split-now-cnt-1,
exe split-o3), per frame:
- 4,100-5,200 slots written by the sender;
- 0.00 whose title record changed between the steps and the writing,
  0.00 by a draw's table;
- 0.0 whose record changed at any time in the run;
- for control, 12,800-15,200 title records changed in all slots.
In this cell no slot a card step fills is ever written by the title's
CPU, so the order change alters nothing here. It matters only for a
title that does both.

Measured (Series S, prologue cell, i9-12900K + RTX 4090; exe split-o2 =
this on 92c848ab, VICTORY_PLACE_CORE=0, which matches reloaded's
placement). In-run A/B over 3 launches, split-now-off2-1..3. Each
launch's first settled phase is left out; settled means over 150 frames,
more than 3,000 draws, and p90 under 1.25x the median. Launch 1 also had
the count on. Medians, ms a frame:

| | off | on |
|---|---|---|
| frame | 39.7 (39.0-39.9, 8 phases) | 38.0 (37.2-39.3, 7 phases) |
| launch 1 / 2 / 3 | 39.9 / 39.6 / 39.2 | 39.2 / 37.9 / 37.55 |
| title waited at presents | 14.5 | 11.8 |
| card idle | 17.8 | 17.0 |
| line: steps given to the card | 4.5 | 3.0 |
| line: title bytes under flights' writes | 6.8 | 7.7 |
| sender worked | 9.7 | 14.4 |

Without launch 1's count: 39.4 vs 37.8. Identical in-run arms differ by
about 1 ms.

Picture, per arm (guards_cellab, phase_pics, phase_diff; 3 launches):

| | off | on |
|---|---|---|
| left wall | 45.4 / 45.3 / 45.2 | 45.9 / 45.4 / 45.2 |
| strip/wall | 1.01 | 1.01-1.02 |
| purple box RGB, launch 2 | 25.1 17.4 17.6 | 25.2 17.4 17.6 |
| banding, flat pairs % | 7.2 / 7.5 / 7.3 | 7.7 / 7.6 / 7.4 |
| colours per 1000 px | 37 / 30 / 30 | 30 / 36 / 31 |
| consecutive frames' difference | 6.23 within an arm (27 pairs) | 6.02 across arms (12 pairs) |

No flicker and no wrong texture on the contact sheets of every frame
from 1500 on, labelled by arm. The silhouette flags at 1500-1600 are the
cutscene and title card before the cell. No device lost, panic, or list
that failed to close or reset.

Checks: clippy --workspace --all-targets --locked, with and without
--all-features, -D warnings: clean; cargo test --workspace --locked: all
pass; cargo xtask policy: ok. Run on 73ec8de5 and again after the rebase
onto 2e905468.

Gate: split-gate3 (split-g4.exe, built on 73ec8de5; the rebase onto
2e905468 was mechanical).
- Cold and three warm launches: 39.8, 39.7, 40.0 and 38.0 ms a frame
  (windows' ranges 37.3-109.9).
- 11-minute session: 37.8-39.2 ms a minute from minute 2, and 24.2-25.0 GB
  private, flat.
- No device lost or panic. 259-270 draws dropped a frame, the ray-tracing
  builder's, as on the base.
- Silhouette, by sil's recount of cell frames: warm2 is SIL (19 of 20
  frames); cold, warm1, warm3 and long are clean.
  - That is the known whole-run left-wall state. guards-gated-warm2 and
    card-gateA-warm3 had it without this change; 10 of today's 167
    launches without sil's fix had it.
  - None of the six A/B launches of this change, either arm, had it.

(cherry picked from commit 821867c401905955f6c5c13a0ced30c65432add3,
"perf(host): the card steps' slots and list closes off the line", of
https://github.com/Biskwit/VIctory-reloaded, GPL-3.0-or-later; only its
card-step slots half)

Ported to trustno1-coder/VIctory-NVIDIA by yeedgrthfgv:
- Off by default here: on only with VICTORY_OFF_LINE=1 together with
  VICTORY_SUBMIT_SPLIT=1 (asked_for!, VICTORY_AB can still switch it in
  diagnostics builds). With it unset card_steps writes the slots on the
  line's thread with the same code as before (kept verbatim in the else
  branch, no Slots built).
- Left out: the host list closes moved to recycle (list.rs). This tree
  already leaves new host lists open for the title's next reset
  (HostList::leave_open, a7b8667), which removed that cost another way.
- Left out: the VICTORY_SLOT_ORDER_COUNT diagnostics (descriptor.rs,
  descriptor/host.rs), a one-off measurement that hooked every slot made.
Also carried, off by default, in Keel62155/VIctoryUnified.

Co-authored-by: yeedgrthfgv <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review of #1066 (wildheathen), point 1.

Cause: split_send() asked only for VICTORY_RELAY_COPY=1, not whether the
copy queue was made. If the card gives none ("no copy queue" in
make_relay_fetch), the relay's fetches go to the drawing queue, and a
fetch there takes every flight in the line as given to the queue already
(line().target, QUEUE_ORDER). A published submission is in the line
before the sender has sent it, so such a fetch could count it as ahead
of itself while its lists went to the queue behind the fetch.

Change: the copy queue and its list are made once by the host
(Host::relay_copying, a OnceLock), and split_send() is true only if they
are there. With the switch on they are made when the first submission
asks, before anything is published, so the answer never changes while
submissions are published. The thread that lands flights takes the same
queue and list for its fetch.

Unset: split_send() stops at the switch as before and never asks for the
queue; the thread that lands flights makes it at its first fetch, the
same objects at the same moment, with the same warning if it cannot.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Review of #1066 (wildheathen), point 2.

Cause: when the compare's result area is half taken, send_published
waits for the flights sent so far to land, so that no plan is out and
the results start from the beginning. It knew "sent so far" from
SENT_FENCE, which only send_published moved. A flight sent under the
submission lock without being published (execute_own at a present, a
submission from before the split was switched on) has a higher fence
value than the last published one and was left out. Its plan stayed
out, the area did not start again (card_done: only with none out), and
the next plans' ranges went uncompared, fetched whole, until that flight
landed by itself. Speed only, no wrong bytes.

Change: it waits for every flight with a lower fence value than its own
(f.fence < h.fence), as the review proposed. Checked against the code:
each of those is on the queue by then, so the wait ends.
- Fence values are given under the submission lock, rising.
- Published ones are sent by this thread alone, in the order they were
  published, which is the order of their values.
- One not published is sent inside submit, under the lock, after
  wait_sent, and joins the line only after that; the lock is let go
  before a later one can be published.
Flights published behind this one (higher values) have no plan yet and
are not waited for, as before. SENT_FENCE has no reader left and goes.

Unset: nothing is published and send_published never runs.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Cause: the "preparing per frame, the submitting thread" line sums SPLIT,
one static, and the thread that sends published submissions
(send_published, VICTORY_SUBMIT_SPLIT, on by default) added three of its
own parts to it:
- "for copies in the card's memory": the lane's card_take and the
  sender's card_record together;
- "at the end ... waiting for the heaps' records": the sender's wait
  (drop of the submission's records round, make_waiting, the slots the
  card steps fill) and the lane's, which is about 0.04 ms a frame since
  the lane publishes before it; the 9.7-10.8 ms a frame there with
  masked words were the sender's;
- "sending the lists": the sender's ExecuteCommandLists.
Timeline land-rec-tl1 (main 64a9f28d): the sender waits 5.1-6.1 ms a
frame for the heaps' records and is idle 20.5-23.7; the lane's waits
ended by heap-sync, the records' threads or the sender are 0.3-0.7 ms a
frame. The wait is not the lane's, and not the wall.

Change: the sender counts into SEND_SPLIT, printed on a line of its own
("the sending thread's part of the preparing per frame"), worded so
that none of the tools' patterns for the lane's fields match it. The
lane's line keeps its fields, now the lane's alone. Diagnostics builds
only; nothing else changes.

Not mixed: the frame line's "preparing" (SUBMISSION_US[0], added by the
lane when it publishes) and queue::behind's "that thread worked" (the
lane's jobs) were the lane's alone, so the README's "preparing" column
is too; the sender's own work is on its line ("it worked ... ms").

Checks: cargo clippy --workspace --all-targets --locked -- -D warnings,
with and without --all-features; cargo test --workspace --locked; cargo
xtask policy.

(cherry picked from commit 48f9982d823afcd4d2a3c4973ae163c25c7365f3,
Biskwit/VIctory-reloaded, GPL-3.0-or-later)

Review of #1066 (wildheathen), point 3, first half. Fitted to this tree:
here SPLIT and the "preparing per frame, the submitting thread" line are
in every build (submit_split_line), not in diagnostics builds only, so
SEND_SPLIT and the sender's line are in every build too and the line is
printed from submit_split_line. VICTORY_SUBMIT_SPLIT is opt-in here, not
on by default as the message above says of the tree it came from. Unset:
nothing is published, SEND_SPLIT stays zero and its line is not printed.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Cause: card_take locked CARD_WORK only to see whether the work of copies
in the card's memory exists. The thread that sends holds that lock while
it records a submission's sends and compare (card_record), and the
submitting thread stood behind it: 0.36 ms a frame (profile
land-rec-prof1, main 64a9f28d: 119 samples at that line).

Change: it asks Host::card_ready, a OnceLock read once the work has
been made. Equivalent: CARD_WORK is set once, by card_ready, and never
emptied; a copy goes to the card's memory only if card_ready said yes,
so card_take is never reached with no work to find.

Measured (in-run A/B as VICTORY_TAKE_UNLOCKED, land-rec1-ab1 and -ab2,
21 phases each, ms a frame, off -> on): frame 36.4 -> 36.5 and 36.1 ->
35.8 (blocks); the lane's copies in the card's memory 3.2 -> 2.9 and
3.2 -> 3.0. Inside the noise on the frame: a lock taken only to see
whether something exists, left out.

Checks: cargo clippy --workspace --all-targets --locked -- -D warnings,
with and without --all-features; cargo test --workspace --locked; cargo
xtask policy (with the next commits, before the gate).

(cherry picked from commit bc4351506d074abc19bde0fed4058af79640cffb,
Biskwit/VIctory-reloaded, GPL-3.0-or-later)

Review of #1066 (wildheathen), point 3: named there as also saving the
line's wait on CARD_WORK. Applied without conflict. card_take is also on
the path of a run without VICTORY_SUBMIT_SPLIT (card_before), so the
equivalence above was checked in this tree: card_take gets past its
"nothing to do" return only with a copy in the card's memory (declared
ranges are filtered by carded(), card_dirty and the picked views hold
carded copies only), a copy gets a card side only after card_ready()
said yes, and CARD_WORK is set there once and never emptied. So the
answer is the same in every state that is reached; only the lock is not
taken. The numbers above are Biskwit's, not measured here.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Review of #1066 (wildheathen), point 3, second half. Biskwit's tree has
no change for this one yet, so it is new here.

Cause: send_published waited with relay_wait, which is written for the
thread that holds the submission lock. On the sender, which does not
hold it, each wait:
- switched the global WORKING off and back to what it had read, while
  the lock holder was working or standing on its own thread, so the
  card's clock ("idle behind the submitting thread") could count the
  wrong stretch;
- added its time to the lock holder's wait for the card (stood,
  SUBMISSION_US[1], LATE_STATS[12], LATE_WAITED) and counted a settle
  for "lists in the air" (LATE_STATS);
- in diagnostics builds took what the lock holder had last named as the
  memory it waits for (blamed), so that wait lost its name.
Counts and log lines only; no order or bytes depend on them.

Change: the sender waits with sender_wait: the same wait on the same
condition, with the timeline's span, and none of those counts. Its time
is still on the sender's own line (SEND_STATS[2], "of them waiting for
landings").

Unset: nothing is published, send_published never runs, relay_wait is
untouched.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The fills shown a copy at its place (#44fc465, VICTORY_PLACED_FILLS) are
written again, in both cases (slots written here or left to the sender);
they are not among the steps' ops, so no slot is written twice. The loop
over the looked copies asks card_has_before, as main does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On 32-lane hosts the four programs of the trees' instance culling
(`InstanceCulling:CS_Tree_BatchCull`, `_ImposterOnly`, `_ValidateInst`,
`_ValidateInstInv`) were refused ("no wave32 lowering for this wave64
program"), so their dispatches were dropped: trees and bushes showed only up
close, stayed while one drove off a little, and went again farther off
(#1516). They are of the shape the wave-wide form is kept for (groups of 64,
an LDS read and write in one lane-branch region); with it they translate,
validate and make RTX pipelines, and they are named with the other programs
that get it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The crash at victory-image+0x23cf683 (write 0x0) is the title's own watchdog:
it writes 0x4D8BD421 to address 0 when its heartbeat stops for 30 one-second
ticks (found in #1428; #1221 shows the same shape). On an RTX 5060 Laptop
every such end was preceded by 30 s of stopped frames while loading into the
world. The watchdog's quit flag (bit 0 at +0x71b6340) is set at start, only
when the trap bytes are where they were found, so other title versions are
left alone. VICTORY_TITLE_WATCHDOG=1 keeps the watchdog.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every line was written to the console pipe and the log file on the thread
that logged it. A launcher that reads the pipe a line at a time
(play-foxhound.ps1) held the submitting and title threads in a log call when
it fell behind. One A/B pair on an RTX 5060 Laptop (Series S, DLSS
performance): median frame time 52-57 ms with lines written in place against
47-49 ms here, frames over 50 ms per 5 s window 12-19 against 4-9. A full
queue drops a line and says so; VICTORY_LOG_SYNC=1 writes in place as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#1093 carves a physical core for the submitting thread only where a V-Cache
half exists; elsewhere the process is not placed. VICTORY_SUBMIT_CORE_ALONE=1
does the same on a processor of one core class with SMT and six cores or
more. Off by default: on a Ryzen 7 H 260 it was inside the run-to-run noise.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
guard() counted range(first..last).count() == last - first block by block
under the guards' lock. Blocks::all answers the same with masks over words; a
test checks it against the count over 40,000 random ranges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The layer and victory play already take it (Series S 640x360, #1115). Two A/B
pairs on an 8 GB RTX 5060 Laptop, Series S: frames over 50 ms per 5 s window
3.8-3.9 against 6.8-7.0 with performance, median fps 21.0/17.9 against
16.6/16.8; a softer picture.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On d459907 the movie-plane gate held all 1,884 gameplay presents off while
DLSS upscaled normally (Bink calls go on during play). VICTORY_DLSSG_MOVIE_GATE=1
brings the old gate back. Prepared by Codex (codex-main worktree).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With HDR on in Windows and HDR on in the F1 menu (VICTORY_HDR=1), the title renders HDR and the layer presents it as HDR10 at the luminance of the display. The interface and the layer's own overlays are at paper white (VICTORY_HDR_PAPER_WHITE, 203 nits by default).
Conflicts with main's card_has_before(): its helper kept, #501's lazy sweep added.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On a 32 GB PC the 128 MiB were too few outdoors: some 12 chunks a frame were
made anew, 4-5 ms of the frame waiting for new memory (tuning-v3, 29.11).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts: draw.rs keeps main's diagnostics wide_write beside #1014's shader_writes;
host.rs runs both lazy_found and check_gpu_ro.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With VICTORY_SWEEP_AHEAD the sweep already lets go only through retire, but it
still took the submitting thread some 45 ms once a second (8-9 ms a frame).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This reverts commit c56ba5e6e6.
In a profile the sweep took 9.8 % of the submitting thread, some 65 ms once a
second: slot_evict's look over every slot of the heaps (slots_showing, SipHash
sets) and let_go_idle's over every texture. It lets go through retire and only
what no list holds, as with VICTORY_SWEEP_AHEAD.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Port of tuning's 893d3a3/261024e/7682e36 onto main: views were made again in
every recording (make_twinned 15 % of the translating threads in a profile of
29.11). A view of another recording is used again if its buffer identity holds,
now with where the view begins in its copy (kept copies are reused, #181).
Pairs of slots are evicted by a clock instead of clearing all.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The keeping's slots are cleared when it is switched: the pairs of one way are
not known to the other.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The part of the slots not written that each pass looks at was most of the pass's
28 ms of the helpers' CPU a frame. VICTORY_AB may switch 16 and 64 (HEAP_ROUND_LONG).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
pair_for looked each of up to 8 owners up in the map to see if this recording used
it (3.2 % of the translating threads); the clock reads the owner's recording now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cherry-picked without the PR's base merges (no shader changes, no rewarm).
Kept ours where both sides did the same work: #1609's KEPT/merged/ahead_covers
over their AHEAD_KEPT/normalized/covers (VICTORY_AHEAD_SEARCH dropped),
ours bury pool (now behind VICTORY_BURY_ASIDE), card_take/card_record split
(their sync-list join of SUBMIT_FAST_2 dropped). SWEEP_ASYNC and SWEEP_ASIDE
both kept. Dead-RT reclaim and aliased_rt left out (from 6ba7fa8, not here).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
WC_BAR=1 rewrote whole pages of write-combined buffers mapped on the card and took back what shaders wrote (upstream #553). =runs compares title memory with a reference and writes changed dwords only; copies below VICTORY_WC_NO_BACK_MIN_KB keep two sides (#355/#481).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The XMA thread spent 1,170 of 5,345 sampled stacks in VLC decoding.
Read a wide word when available and use an 8-bit prefix table when the
legacy search agrees on every suffix. Keep PCM and error behavior
identical and keep the legacy path with VICTORY_XMA_FAST_BITS=0.

Release, four frames per 2 KiB packet: mono 56.78 -> 37.28 us,
stereo 112.29 -> 76.49 us. Tests compare PCM, overlap, errors and
bit positions across the two paths.
Keep one scratch buffer per APU connection and zero the live PCM span
for each packet. Avoid allocating and zeroing up to 45 KiB per
PROCESS while preserving decoding, trimming, PCM and results.
VICTORY_OPUS_REUSE_PCM=0 selects the old allocation.

Release A/B in apu::process, us/packet:
CELT mono 9.31 -> 8.63, stereo 45.99 -> 44.51,
SILK mono 12.78 -> 12.04, hybrid mono 27.71 -> 27.41.
Compare the bytes and results from both paths on 16 saved packets,
malformed input and 120 ms repacketized inputs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Of 5,500 refreshes a frame 4,600 copy nothing (log of 2026-11-29), most of
them the heap's buffer views, one copy each, every frame. Each was told so by
a walk of the journal's tree of every page ever found written, down from its
root, the copies in no order of their addresses: JournalView::nothing_new was
3 % of the submitting thread's samples (profile of 2026-11-29), and the same
walks ran on the helpers.

The journal keeps the same as a table by page, the asking that last found it
written, with the latest of each 1 MiB beside it, under its lock. A range
nothing wrote since the copy took it whole is told in one look per 1 MiB, the
rest page by page against what the copy took when, as the tree is. The answer
is the tree's (watch::stamps_tests, refresh_tests::stamps_tell_what_the_tree_tells),
and refreshed ranges hold title memory with it
(refreshed_ranges_hold_title_memory_with_stamps, unchanged_ranges_are_known_by_stamps).

Measured in refresh_tests::clean_copies_told_so (4,400 copies as they were,
release, Wine on a 2-core VM, three runs): 153-264 ns a copy by the tree,
77-116 by the table, journals of 120,000 and 400,000 pages; the batch's flush
of them on two threads 757-908 us, 373-418. refresh_tests::frame_of_refreshes:
45.8 and 46.4 ms a frame, 44.7 and 44.3.

Off by default. Kept from the first note when the switch is set or VICTORY_AB
names it (diagnostics: VICTORY_AB=20,VICTORY_PAGE_STAMPS), else not at all:
544 KiB per 4 GiB of address space written.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01ShC5KuZncUedmxu6SXXK4G
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 20:06:43 +00:00
github-bot closed this pull request 2026-12-01 18:59:07 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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!3102
No description provided.