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

Merged
101Leafy merged 4 commits from upstream-pr/1761 into main 2026-11-29 08:16:54 +00:00
101Leafy commented 2026-11-28 23:57:10 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-28T23:57:10Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5545820177 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1761). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-28T23:57:10Z. --- 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.
eleboucher commented 2026-11-29 04:52:55 +00:00 (Migrated from github.com)

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


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.

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