Repository navigation
Conversation
Use feature-gated GPU upload heaps for reusable CPU-written command-list scratch, with an atomic lifetime budget and DXGI pressure check. Preserve normal upload fallback and writable shadow semantics. Add reservation and GPU readback fixtures. Stacked on PR #2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Stacked on #2 (shared scratch pool); merge #2 first and retarget if needed. Narrow adaptation of VItoriaBr GPU upload windows and NVIDIA's GPU upload heaps guidance.
VICTORY_GPU_UPLOAD_SCRATCH_MB(default 0, maximum 1024 MiB). Only reusable command-list scratch chunks are eligible: misaligned read-only root CBVs and CPU-expanded rectangle vertices. Oversized dedicated uploads, writable title shadows, all UAVs, and readback remain unchanged.Limitations
The fork's
VICTORY_CARD_BUFFERS_MBwritable-shadow migration is NOT implemented: it depends on separate GPU and CPU buffers, dirty upload, GPU-side comparisons and writeback. Current shadows use a single mapped resource throughout. Do not substitute GPU upload heaps for them. This PR targets a narrower safe-to-attempt path and does not claim equivalent gains.No Rust compilation, Windows GPU fixture execution, D3D12 debug-layer validation or gameplay benchmarking performed. Verified branch comparison. Suggested experiment: 0 vs 64/128/256 MiB on same hardware and scene, warmed cache, measure frame times and image correctness. Keep default 0 until evidence.