Reduce CPU frame-preparation allocations and shadow lock contention #850
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!850
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@t90 on GitHub · 2026-11-28 07:43 UTC · original
t90:contribute/stutter-fixes→main· +606 −167 · 5 files · 1 commits · closed without mergingDraw 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.
@trustno1-coder on GitHub · 2026-11-28 19:23 UTC · original
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