Copies with nothing new: VICTORY_NEW_BATCH=1 answers a flush's copies together, the write journal read once for all of them instead of once a copy (each copy's own three locks still once each, a copy is in a flush once) #1785

Manually merged
github merged 4 commits from github-bot/gh-1785 into main 2026-11-29 08:21:20 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-29 00:05 UTC · original
101Leafy:nv/new-batch → main · +135 −25 · 12 files · 4 commits · merged 2026-11-29 08:16 UTC

At a flush, each copy was asked on its own whether it holds anything new, and every one of those asks read the write journal again.

With VICTORY_NEW_BATCH=1 the flush's copies are answered together: each copy's own locks are still taken once, but the journal is read once for all of them. Notes copied out of a copy can only be older than the copy's own, so the answer can only say "changed" more often, never less.

Off by default.

**@⁠101Leafy** on GitHub · 2026-11-29 00:05 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1785) `101Leafy:nv/new-batch` → `main` · +135 −25 · 12 files · 4 commits · merged 2026-11-29 08:16 UTC At a flush, each copy was asked on its own whether it holds anything new, and every one of those asks read the write journal again. With VICTORY_NEW_BATCH=1 the flush's copies are answered together: each copy's own locks are still taken once, but the journal is read once for all of them. Notes copied out of a copy can only be older than the copy's own, so the answer can only say "changed" more often, never less. Off by default.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 00:10:13 +00:00
github-bot force-pushed github-bot/gh-1785 from 055302cea9 to c2121de9bc 2026-11-29 01:55:21 +00:00 Compare
Author
Owner

@⁠eleboucher on GitHub · 2026-11-29 04:52 UTC · original

PC result: RTX 4070 Ti SUPER 16 GB, Ryzen 7 9800X3D, 16 GB RAM, Windows 11, native 1440p, VICTORY_BVH_BUILDER=1 VICTORY_ACTIVATE_RAYS=1, diagnostics build of main 568c5e5d plus this PR, #1761 and a few others, 10-minute run each, medians after 200 s.

fps (p10) preparing refreshes among list steps
switch off 24.8 (23.7) 29.3 ms 14.0 ms, 10260 on several threads
VICTORY_NEW_BATCH=1 23.5 (21.1) 33.0 ms 17.8 ms, 1089 on several threads

With the switch on, the answers move from the threads to the submitting thread (about 11,000 refreshes a frame here, ~10,000 of them copying nothing), and the submitting thread is the critical path in this run, so the frame gets ~1.3 fps slower.

**@⁠eleboucher** on GitHub · 2026-11-29 04:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1785#issuecomment-7250917039) PC result: RTX 4070 Ti SUPER 16 GB, Ryzen 7 9800X3D, 16 GB RAM, Windows 11, native 1440p, `VICTORY_BVH_BUILDER=1 VICTORY_ACTIVATE_RAYS=1`, diagnostics build of main 568c5e5d plus this PR, #1761 and a few others, 10-minute run each, medians after 200 s. | | fps (p10) | preparing | refreshes among list steps | |---|---|---|---| | switch off | 24.8 (23.7) | 29.3 ms | 14.0 ms, 10260 on several threads | | `VICTORY_NEW_BATCH=1` | 23.5 (21.1) | 33.0 ms | 17.8 ms, 1089 on several threads | With the switch on, the answers move from the threads to the submitting thread (about 11,000 refreshes a frame here, ~10,000 of them copying nothing), and the submitting thread is the critical path in this run, so the frame gets ~1.3 fps slower.
github manually merged commit d4c73298f4 into main 2026-11-29 08:21:20 +00:00
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!1785
No description provided.