Stage registered VRAM buffer copies through sparse files #964

Closed
Kamiloj9 wants to merge 1 commit from upstream-pr/965 into main
Kamiloj9 commented 2026-11-25 13:56:02 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Kamiloj9 on 2026-11-25T13:56:02Z.


Summary

  • Add optional sparse mapped-file CPU staging for registered buffers already admitted to VRAM. Keep shared staging as the default and as a fallback when file setup fails.
  • Use one reusable 16 MiB upload buffer for changed ranges. Finish each batch on the direct queue before reusing upload memory or hashing the VRAM contents. Preserve the existing GPU write readback and merge.
  • Restrict the experiment to native Windows and synchronous direct-queue submission. The README documents disk capacity and latency tradeoffs.

Verification

  • Workspace check with all features and default application check on this branch.
  • WARP upload and full readback across two batches. Both card merge tests and the staged asset policy check passed.
  • A separate RTX 4080 SUPER synthetic probe, with 960 KiB touched across a 96 MiB staging allocation, measured a 0.96 MiB private commit increase with the file and bounded upload versus 96.19 MiB with full shared staging. GPU reads and a compute UAV write matched the expected contents.
  • A guarded run on the integrated diagnostic branch observed 933 MiB of live file staging capacity. It still hit the system commit guard before world entry. Loose-window shared allocations grew by 2,168 MiB over the last two samples. This run does not demonstrate a lower process peak, a frame rate improvement, or world entry.
<!-- greyfinch-sync:fxceless/victory-fork:issue:6606119170 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/965). Originally posted by [Kamiloj9](https://github.com/Kamiloj9) on 2026-11-25T13:56:02Z. --- ## Summary - Add optional sparse mapped-file CPU staging for registered buffers already admitted to VRAM. Keep shared staging as the default and as a fallback when file setup fails. - Use one reusable 16 MiB upload buffer for changed ranges. Finish each batch on the direct queue before reusing upload memory or hashing the VRAM contents. Preserve the existing GPU write readback and merge. - Restrict the experiment to native Windows and synchronous direct-queue submission. The README documents disk capacity and latency tradeoffs. ## Verification - Workspace check with all features and default application check on this branch. - WARP upload and full readback across two batches. Both card merge tests and the staged asset policy check passed. - A separate RTX 4080 SUPER synthetic probe, with 960 KiB touched across a 96 MiB staging allocation, measured a 0.96 MiB private commit increase with the file and bounded upload versus 96.19 MiB with full shared staging. GPU reads and a compute UAV write matched the expected contents. - A guarded run on the integrated diagnostic branch observed 933 MiB of live file staging capacity. It still hit the system commit guard before world entry. Loose-window shared allocations grew by 2,168 MiB over the last two samples. This run does not demonstrate a lower process peak, a frame rate improvement, or world entry.
upstream-sync closed this pull request 2026-11-26 01:06:01 +00:00

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
fxceless/victory-fork!964
No description provided.