Title memory by address: VICTORY_MEMORY_NO_WAIT puts off a page look while a submission asks the write watch, so recording threads stop queueing on the memory mutex behind it #1729

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

@⁠101Leafy on GitHub · 2026-11-28 23:46 UTC · original
101Leafy:nv/memory-no-wait → main · +46 −18 · 12 files · 4 commits · merged 2026-11-29 08:16 UTC

Title memory looked up by address takes the memory mutex for its page look. While a submission asks the write watch, that can take seconds a frame in longer play runs, and every recording thread queues on the mutex behind it.

With VICTORY_MEMORY_NO_WAIT=1 the page look is put off while the write watch is busy. The pages keep what they last took and a later draw looks again. A page that was never taken still waits. Off by default.

**@⁠101Leafy** on GitHub · 2026-11-28 23:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1729) `101Leafy:nv/memory-no-wait` → `main` · +46 −18 · 12 files · 4 commits · merged 2026-11-29 08:16 UTC Title memory looked up by address takes the memory mutex for its page look. While a submission asks the write watch, that can take seconds a frame in longer play runs, and every recording thread queues on the mutex behind it. With `VICTORY_MEMORY_NO_WAIT=1` the page look is put off while the write watch is busy. The pages keep what they last took and a later draw looks again. A page that was never taken still waits. Off by default.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:47:17 +00:00
github-bot force-pushed github-bot/gh-1729 from 6f4e49cc98 to e555130b01 2026-11-29 01:47:03 +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_MEMORY_NO_WAIT=1: 25.3 fps (p10 24.3), preparing 29.1 ms, about +1.0 fps. No crash. (10-minute runs; the PR mentions longer sessions, which these do not cover.)

**@⁠eleboucher** on GitHub · 2026-11-29 07:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1729#issuecomment-7252573694) 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_MEMORY_NO_WAIT=1`: 25.3 fps (p10 24.3), preparing 29.1 ms, about +1.0 fps. No crash. (10-minute runs; the PR mentions longer sessions, which these do not cover.)
github manually merged commit 8dd555e1eb 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!1729
No description provided.