Avoid per-block allocations in GPU landing order #4006
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!4006
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4006"
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?
@Rosynb666 on GitHub · 2026-11-30 14:20 UTC · original
Rosynb666:perf/land-order-in-place→main· +18 −5 · 2 files · 1 commits · openWhat it changes
land::orderedpreviously allocated and copied a temporary index vector foreach block containing multiple pieces from a single copy. This patch sorts
the existing index slice in place and emits singleton blocks directly.
Stable sorting preserves the first source index for equal addresses.
Mixed-copy blocks retain their input order.
How it was tested
Baseline:
41adb551. Synthetic CPU benchmark on macOS ARM64, Rust 1.98.1.Times are medians per call. Allocation counts were measured separately.
Two isolated Rust unit tests passed, including the new regression test.
10,003 differential cases matched the original output and overlap counter.
cargo checkpassed forvictory-gpuon the Windows x64 MSVC target,using
blake3/purefor the cross-check.Full native Windows test suite and in-game frame-time measurements are pending.
Checked for overlap
Related open PRs include #2881 and #3626. This patch focuses on the
per-block index allocation inside
land::ordered.@dyshay on GitHub · 2026-11-30 14:53 UTC · original
Merged for testing into our integration branch dyshay/VIctory-NVIDIA
janus-prs. Builds and the targeted CPU tests pass; a run on an RTX 4090 (Series S, hardware RT) is queued and I'll post the result here.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.