Refreshes among the steps: VICTORY_FLUSH_SIFT sifts out the spans known to copy nothing on all threads before asking the write watch ahead at flushes of many, and a per frame line times them #1761

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

@⁠101Leafy on GitHub · 2026-11-28 23:57 UTC · original
101Leafy:nv/flush-sift → main · +83 −18 · 10 files · 4 commits · merged 2026-11-29 08:16 UTC

This does the same as the front sift for flushes among the steps. With very many refreshes at one flush (the heap's buffer views once a frame), the write watch was asked ahead for all of them before anything was sifted.

VICTORY_FLUSH_SIFT=1 sifts out the refreshes known to copy nothing on all threads before the write watch is asked ahead at flushes of many, and each refresh keeps only its ranges that may copy something. A per frame line times them.

Off by default.

**@⁠101Leafy** on GitHub · 2026-11-28 23:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1761) `101Leafy:nv/flush-sift` → `main` · +83 −18 · 10 files · 4 commits · merged 2026-11-29 08:16 UTC This does the same as the front sift for flushes among the steps. With very many refreshes at one flush (the heap's buffer views once a frame), the write watch was asked ahead for all of them before anything was sifted. VICTORY_FLUSH_SIFT=1 sifts out the refreshes known to copy nothing on all threads before the write watch is asked ahead at flushes of many, and each refresh keeps only its ranges that may copy something. A per frame line times them. Off by default.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:58:49 +00:00
github-bot force-pushed github-bot/gh-1761 from 4ff660d1f4 to c2aaf907fa 2026-11-29 01:47:49 +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, #1785 and a few others, 10-minute run each, medians after 200 s.

fps preparing refreshes among list steps
switch off 24.8 29.3 ms 14.0 ms (37 flushes, 11082 refreshes, 9974 known to copy nothing)
VICTORY_FLUSH_SIFT=1 24.9 29.3 ms 13.4 ms (38 flushes, 11148, 9996)

The sift runs (0.30 ms sifting ... VICTORY_FLUSH_SIFT is on), and "on several threads" drops from 10260 to 6214. But the write-watch ask over those flushes was already 0 ranges and the threaded copying 0.37 ms, so the ~14 ms of refreshes is spent elsewhere and the frame does not change.

**@⁠eleboucher** on GitHub · 2026-11-29 04:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1761#issuecomment-7250916885) 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, #1785 and a few others, 10-minute run each, medians after 200 s. | | fps | preparing | refreshes among list steps | |---|---|---|---| | switch off | 24.8 | 29.3 ms | 14.0 ms (37 flushes, 11082 refreshes, 9974 known to copy nothing) | | `VICTORY_FLUSH_SIFT=1` | 24.9 | 29.3 ms | 13.4 ms (38 flushes, 11148, 9996) | The sift runs (`0.30 ms sifting ... VICTORY_FLUSH_SIFT is on`), and "on several threads" drops from 10260 to 6214. But the write-watch ask over those flushes was already 0 ranges and the threaded copying 0.37 ms, so the ~14 ms of refreshes is spent elsewhere and the frame does not change.
github manually merged commit 28791e50b2 into main 2026-11-29 08:21:19 +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!1761
No description provided.