Skip redundant descriptor snapshot checks #28

Open
github-bot wants to merge 1 commit from github-bot/gh-28 into main AGit
Owner

@⁠avt0m4t48 on GitHub · 2026-12-03 03:41 UTC · original
avt0m4t48:perf-descriptor-snapshot-range → main · +20 −10 · 2 files · 1 commits · draft

Change

Determine which title descriptor handles have no host slot, once per group. A fully covered title heap needs no eligibility scan. For a capped heap, a valid maximum settles the decision. When the maximum exceeds the heap or the address addition overflows, inspect the declarations against the remaining handle range.

The lookup still lazily initializes the host heap, and a group containing a constant buffer is still rebuilt. The rule includes interior handles and uses the actual fitted slot count, excluding the host's dynamic, null and auxiliary regions.

Verification

The Linux fixture runs the exact per-pin mask decision and heap geometry using synthetic descriptors. A widened-address oracle checked 80,000 predicates and 4,096 complete masks per source and target. Cases covered interior and overflowing handles, both heap kinds, capped mirrors, CBVs, first-use pending writes and, on NVIDIA, half views beyond the declaration's start.

The table shows median CPU times from 15 adjacent pairs on the public source (x86-64).

Synthetic eligibility shape Before and after
One entry, full coverage 21.26 → 15.76 ns
Five groups, mixed capped tables 138.29 → 89.44 ns
256 entries, capped and invalid maximum 907.35 → 381.17 ns

Windows x64 MSVC type-checked the standalone GPU crate and its tests, plus the integrated workspace test targets, with diagnostics and pure-Rust BLAKE3. These compile-only checks use an external metadata declaration for the optional allocator. Both staged files passed the asset policy. Driver-side descriptor binding time and gameplay frame times remain unmeasured.

**@⁠avt0m4t48** on GitHub · 2026-12-03 03:41 UTC · [original](https://github.com/linkoovosh/LinkoArts-build/pull/28) `avt0m4t48:perf-descriptor-snapshot-range` → `main` · +20 −10 · 2 files · 1 commits · draft ### Change Determine which title descriptor handles have no host slot, once per group. A fully covered title heap needs no eligibility scan. For a capped heap, a valid maximum settles the decision. When the maximum exceeds the heap or the address addition overflows, inspect the declarations against the remaining handle range. The lookup still lazily initializes the host heap, and a group containing a constant buffer is still rebuilt. The rule includes interior handles and uses the actual fitted slot count, excluding the host's dynamic, null and auxiliary regions. ### Verification The Linux fixture runs the exact per-pin mask decision and heap geometry using synthetic descriptors. A widened-address oracle checked 80,000 predicates and 4,096 complete masks per source and target. Cases covered interior and overflowing handles, both heap kinds, capped mirrors, CBVs, first-use pending writes and, on NVIDIA, half views beyond the declaration's start. The table shows median CPU times from 15 adjacent pairs on the public source (x86-64). | Synthetic eligibility shape | Before and after | |---|---:| | One entry, full coverage | 21.26 → 15.76 ns | | Five groups, mixed capped tables | 138.29 → 89.44 ns | | 256 entries, capped and invalid maximum | 907.35 → 381.17 ns | Windows x64 MSVC type-checked the standalone GPU crate and its tests, plus the integrated workspace test targets, with diagnostics and pure-Rust BLAKE3. These compile-only checks use an external metadata declaration for the optional allocator. Both staged files passed the asset policy. Driver-side descriptor binding time and gameplay frame times remain unmeasured.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 05:22:01 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/28/head:github-bot/gh-28'
git switch 'github-bot/gh-28'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-28'
git switch 'github-bot/gh-28'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-28'
git switch 'github-bot/gh-28'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-28'
git switch 'main'
git merge --squash 'github-bot/gh-28'
git switch 'main'
git merge --ff-only 'github-bot/gh-28'
git switch 'main'
git merge 'github-bot/gh-28'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.