Avoid per-block allocations in GPU landing order #4006
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Rosynb666 on 2026-11-30T14:20:03Z.
What 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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dyshay on 2026-11-30T14:53:35Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.