Skip to content

[Review import] GPU: parallelize submission buffer-copy refreshes (upstream #3305) - #5

Draft
maok625 wants to merge 1 commit into
mainfrom
review/upstream-pr-3305-parallel-buffer-refresh
Draft

maok625 wants to merge 1 commit into
mainfrom
review/upstream-pr-3305-parallel-buffer-refresh

Conversation

@maok625

@maok625 maok625 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Imported from Marvisak#3305 for review on this fork.

Upstream source head: 4ed54fc7f8fc69a29cfa5c6a6afcff93b9c06719 (from borosf/VIctory). This commit is directly based on the current fork baseline 63bcca43c6a00a758510398fa43096ce7e4f7df0; no commits from main need to be replayed.

This is a draft review import only. Please inspect the implementation and tests, resolve any interactions with other review branches, and run the Windows/D3D12 test suite before merging. No local build or hardware validation has been performed by this import.

Integration warning

This changes submission buffer refresh on worker threads and shares crates/victory-gpu/src/host.rs with upstream Marvisak#3312 (VRAM-backed shadow/page-table buffers) and Marvisak#3307 (indirect argument/barrier lifetime). Review the combined host submission lifecycle, lock ordering, task completion, copy-back order, and error propagation before merging alongside either change.

Batch::flush ran each copy's Shadow::update on the submitting thread:
a world frame's ~80 copies move ~265 MB through one ReadProcessMemory
thread. Each copy appears once in the batch (pending is keyed by its
shadow), so the updates touch disjoint state and run via the existing
texture::in_parallel (up to 4 threads); the current-range merge stays
serial and in the original order. Synthetic test: 16 copies x 64 pages
(64 MiB) flush in ~6.5 ms parallel vs ~7.9 ms serial on a 12-core B580
host, same bytes copied. No game data; synthetic pools only.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants