Prepare bindless buffer copies during scene loading #3486

Closed
Kitrae wants to merge 1 commit from upstream-pr/3486 into main
Kitrae commented 2026-11-29 23:50:10 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kitrae on 2026-11-29T23:50:10Z.


What it changes

The first bindless buffer pass can create thousands of host buffer copies just as the title draws the world. In a 3840×1080 run on an RTX 4090, preparing nearly 70,000 views took about 0.8 seconds.

  • Mark placed buffer views as their descriptors arrive. Before the first regular heap pass, the existing background helper looks up their backing copies in bounded batches.
  • Keep descriptor publication and refresh ordering in the existing heap pass. Optional preparation stops once that pass is requested and pauses when system memory is under pressure.
  • VICTORY_WARM_BUFFER_VIEWS=0 disables the preparation for A/B runs.

How it was tested

Windows 11, RTX 4090 and i9-14900KF, Series X, 3840×1080 output, DLSS Performance, effective 2× frame generation. A scripted replay loaded the same post-prologue save once per setting with the same local ultrawide release executable and a shared warmed cache.

Metric Off On
First bindless buffer pass 829 ms 577 ms
Longest logged frame near the first world frame 2.24 s 1.76 s
Time from process launch to first world frame 34.22 s 35.10 s

Both runs reached the world. The longest frame was sampled from five seconds before the first world frame through six seconds after it. This pair measures the scene-entry hitch. Total load time and sustained FPS need more runs.

Six focused victory-gpu tests passed, covering the bounded slot batch, slot ordering, the background helper, and relay ordering. The staged asset-policy and whitespace checks also passed.

Checked for overlap

  • Searched open PRs. Related #2334 adds early refresh and texture startup work. This change prepares backing copies for marked placed buffer views before the regular pass.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5556487666 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3486). Originally posted by [Kitrae](https://github.com/Kitrae) on 2026-11-29T23:50:10Z. --- ## What it changes The first bindless buffer pass can create thousands of host buffer copies just as the title draws the world. In a 3840×1080 run on an RTX 4090, preparing nearly 70,000 views took about 0.8 seconds. - Mark placed buffer views as their descriptors arrive. Before the first regular heap pass, the existing background helper looks up their backing copies in bounded batches. - Keep descriptor publication and refresh ordering in the existing heap pass. Optional preparation stops once that pass is requested and pauses when system memory is under pressure. - `VICTORY_WARM_BUFFER_VIEWS=0` disables the preparation for A/B runs. ## How it was tested Windows 11, RTX 4090 and i9-14900KF, Series X, 3840×1080 output, DLSS Performance, effective 2× frame generation. A scripted replay loaded the same post-prologue save once per setting with the same local ultrawide release executable and a shared warmed cache. | Metric | Off | On | | --- | ---: | ---: | | First bindless buffer pass | 829 ms | 577 ms | | Longest logged frame near the first world frame | 2.24 s | 1.76 s | | Time from process launch to first world frame | 34.22 s | 35.10 s | Both runs reached the world. The longest frame was sampled from five seconds before the first world frame through six seconds after it. This pair measures the scene-entry hitch. Total load time and sustained FPS need more runs. Six focused `victory-gpu` tests passed, covering the bounded slot batch, slot ordering, the background helper, and relay ordering. The staged asset-policy and whitespace checks also passed. ## Checked for overlap - [x] Searched open PRs. Related #2334 adds early refresh and texture startup work. This change prepares backing copies for marked placed buffer views before the regular pass.
trustno1-coder commented 2026-12-01 18:51:54 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:51:54Z.


Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321699288 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3486#issuecomment-7321699288). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:51:54Z. --- Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

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!3486
No description provided.