Refreshes in front: VICTORY_FRONT_SIFT sifts out the spans known to copy nothing on all threads before asking the write watch ahead, and a per frame line times the sift, the asking and the copies #1760

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

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


With very many refreshes in front of a submission, the write watch was asked ahead for all of them, and each one was sifted next to the others' copies. With few refreshes the ones known to copy nothing were already sifted out first.

VICTORY_FRONT_SIFT=1 sifts out the spans known to copy nothing on all threads before the write watch is asked ahead, so it is only asked about the ones left, and the threads then share what copies. A per frame line times the sift, the asking and the copies.

Off by default.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5545819330 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1760). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-28T23:57:02Z. --- With very many refreshes in front of a submission, the write watch was asked ahead for all of them, and each one was sifted next to the others' copies. With few refreshes the ones known to copy nothing were already sifted out first. VICTORY_FRONT_SIFT=1 sifts out the spans known to copy nothing on all threads before the write watch is asked ahead, so it is only asked about the ones left, and the threads then share what copies. A per frame line times the sift, the asking and the copies. Off by default.
eleboucher commented 2026-11-29 07:36:03 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eleboucher on 2026-11-29T07:36:03Z.


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 and several others (one exe, one switch per run), 10-minute runs, medians after 200 s. Same exe without the switch: 24.3 fps (p10 23.5), preparing 30.6 ms.

With VICTORY_FRONT_SIFT=1: 24.9 fps (p10 23.7), preparing 30.0 ms. The sift runs ("refreshes in front of submissions per frame: 3.3-3.6 ms sifting ... 9.8-10.9 copying on the threads"), so the front work is now visible but the frame barely moves: the remaining cost is in the threaded copying, not in asking the write watch (0 ranges). No crash.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7252573097 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1760#issuecomment-7252573097). Originally posted by [eleboucher](https://github.com/eleboucher) on 2026-11-29T07:36:03Z. --- 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 and several others (one exe, one switch per run), 10-minute runs, medians after 200 s. Same exe without the switch: 24.3 fps (p10 23.5), preparing 30.6 ms. With `VICTORY_FRONT_SIFT=1`: 24.9 fps (p10 23.7), preparing 30.0 ms. The sift runs ("refreshes in front of submissions per frame: 3.3-3.6 ms sifting ... 9.8-10.9 copying on the threads"), so the front work is now visible but the frame barely moves: the remaining cost is in the threaded copying, not in asking the write watch (0 ranges). No crash.
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!1760
No description provided.