Skip the residency flag query for excluded heaps #29

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

@⁠avt0m4t48 on GitHub · 2026-12-03 03:44 UTC · original
avt0m4t48:perf-delay-residency-descriptor → main · +16 −18 · 1 files · 1 commits · draft

Change

Read the resource description only after GetHeapProperties returns a heap that the current policy considers for HIGH priority. An excluded heap such as UPLOAD or CUSTOM/L0 drops from three classification calls to two. Eligible heaps still read the live resource flags, and the priority request still precedes the synchronous residency wait.

The source comment now reflects that GetHeapProperties accepts placed and committed resources and returns an error for reserved resources. Direct3D 12 API contract

Verification

An updated priority test makes the flag supplier panic if upload or CUSTOM/L0 classification calls it. A Linux replay ran the actual classifier, synchronous residency and buffer wrapper on simulated interfaces. It matched the returned errors, the order of all remaining calls, the number of HIGH requests and the count of MakeResident calls. The cases include disabled priority, disabled waiting, writable resources and failed queries or requests.

Windows x64 MSVC type-checked the standalone GPU crate and test targets and the integrated workspace test targets with diagnostics and pure-Rust BLAKE3. The staged file passed the asset policy. The replay verifies call counts and behavior. Driver elapsed time and gameplay frame times remain unmeasured.

On LinkoArts the saving requires opt-in residency priority and the synchronous path. The replay also exercised the asynchronous queue path and its two initialization failures, which route to synchronous residency. The Windows checks used an external allocator metadata declaration.

**@⁠avt0m4t48** on GitHub · 2026-12-03 03:44 UTC · [original](https://github.com/linkoovosh/LinkoArts-build/pull/29) `avt0m4t48:perf-delay-residency-descriptor` → `main` · +16 −18 · 1 files · 1 commits · draft ### Change Read the resource description only after `GetHeapProperties` returns a heap that the current policy considers for HIGH priority. An excluded heap such as UPLOAD or CUSTOM/L0 drops from three classification calls to two. Eligible heaps still read the live resource flags, and the priority request still precedes the synchronous residency wait. The source comment now reflects that `GetHeapProperties` accepts placed and committed resources and returns an error for reserved resources. [Direct3D 12 API contract](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12resource-getheapproperties) ### Verification An updated priority test makes the flag supplier panic if upload or CUSTOM/L0 classification calls it. A Linux replay ran the actual classifier, synchronous residency and buffer wrapper on simulated interfaces. It matched the returned errors, the order of all remaining calls, the number of HIGH requests and the count of MakeResident calls. The cases include disabled priority, disabled waiting, writable resources and failed queries or requests. Windows x64 MSVC type-checked the standalone GPU crate and test targets and the integrated workspace test targets with diagnostics and pure-Rust BLAKE3. The staged file passed the asset policy. The replay verifies call counts and behavior. Driver elapsed time and gameplay frame times remain unmeasured. On LinkoArts the saving requires opt-in residency priority and the synchronous path. The replay also exercised the asynchronous queue path and its two initialization failures, which route to synchronous residency. The Windows checks used an external allocator metadata declaration.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 05:22:06 +00:00
This pull request has changes conflicting with the target branch.
  • crates/darner-gpu/src/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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