Reduce CPU frame-preparation allocations and shadow lock contention #850
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/850"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by t90 on 2026-11-28T07:43:25Z.
Draw submission allocates a temporary descriptor-heap vector, constant-buffer fill planning repeatedly builds temporary ranges, and independent title-shadow allocations hold the shared registration lock. These add CPU work and can serialize unrelated refreshes during streaming.
This change binds descriptor heaps from stack storage, plans constant-buffer fills with fewer temporary collections, batches small refresh jobs and their accounting, and performs independent shadow allocations outside the shared table lock. Allocation publication revalidates the live registration, and existing placed-read ordering guards remain intact.
Validation:
This PR excludes newer early command-list recycling and texture-readback reuse experiments, lighting workarounds, typed-half changes, and local launch settings.
Local check detail: both workspace Clippy configurations (--all-targets, with and without --all-features) pass with command-line allowances for three lint classes already failing in unchanged upstream code: manual_is_multiple_of (descriptor.rs and shadow.rs), let_and_return (shader emit tests), and some_filter (gameinput.rs). No lint allowances were added to source or CI. Strict upstream CI can still report those existing failures. The complete workspace test suite was not run locally; the listed focused correctness tests were run on this isolated branch.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T19:23:10Z.
Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.
Pull request closed