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

Merged
101Leafy merged 4 commits from upstream-pr/1785 into main 2026-11-29 08:16:53 +00:00
101Leafy commented 2026-11-29 00:05:26 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-29T00:05:26Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5545877031 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1785). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-29T00:05:26Z. --- 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.
eleboucher commented 2026-11-29 04:52:56 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eleboucher on 2026-11-29T04:52:56Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7250917039 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1785#issuecomment-7250917039). Originally posted by [eleboucher](https://github.com/eleboucher) on 2026-11-29T04:52:56Z. --- 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.
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
trustno1-coder/VIctory-NVIDIA!1785
No description provided.