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

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

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

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.

**@⁠101Leafy** on GitHub · 2026-11-28 23:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1760) `101Leafy:nv/front-sift` → `main` · +71 −18 · 10 files · 4 commits · merged 2026-11-29 08:16 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:58:47 +00:00
github-bot force-pushed github-bot/gh-1760 from c4c0bc2ec0 to 4e42a1d8e5 2026-11-29 01:48:02 +00:00 Compare
Author
Owner

@⁠eleboucher on GitHub · 2026-11-29 07:36 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 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.

**@⁠eleboucher** on GitHub · 2026-11-29 07:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1760#issuecomment-7252573097) 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.
github manually merged commit 4c919ede0b into main 2026-11-29 08:20:45 +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!1760
No description provided.