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

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

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


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5545750018 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1729). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-28T23:46:39Z. --- 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.
eleboucher commented 2026-11-29 07:36:06 +00:00 (Migrated from github.com)

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


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.)

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