perf(dstorage): add native file read staging #2761

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

@⁠wrq2007 on GitHub · 2026-11-29 16:56 UTC · original
wrq2007:perf/native-dstorage-staging → main · +768 −41 · 3 files · 1 commits · open

Summary

  • Add an optional Windows DirectStorage native file-read path for representable console requests.
  • Read uncompressed destinations directly and use bounded staging for compressed or page destinations; the existing zlib/BCPack decoders remain in the HLE.
  • Preserve ordering, completion status, staging limits, and file lifetime, including title-side file release while reads are queued.
  • Fall back to the existing HLE read path when the runtime, API, request shape, or backing is unsupported.
  • Correct the DirectStorage COM vtable slots and pin them with layout/slot tests.

This is complementary to #2157, #2441, #2332, and #2331.

Test plan

  • cargo test --locked -p victory-gpu --lib dstorage::tests
  • cargo test --locked -p victory-hle --lib modules::dstorage::tests
  • cargo clippy --locked -p victory-gpu --all-targets
  • cargo clippy --locked -p victory-hle --all-targets
  • cargo xtask policy --staged
  • Short real-game fallback smoke test with ray tracing enabled
  • Static real-game A/B on a host with the DirectStorage runtime installed

The ignored native-runtime smoke test cannot run on the current host because dstorage.dll is not installed; the fallback path remains covered by the HLE tests.

No game assets, screenshots, logs, executables, or local paths are included.

**@⁠wrq2007** on GitHub · 2026-11-29 16:56 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2761) `wrq2007:perf/native-dstorage-staging` → `main` · +768 −41 · 3 files · 1 commits · open ## Summary - Add an optional Windows DirectStorage native file-read path for representable console requests. - Read uncompressed destinations directly and use bounded staging for compressed or page destinations; the existing zlib/BCPack decoders remain in the HLE. - Preserve ordering, completion status, staging limits, and file lifetime, including title-side file release while reads are queued. - Fall back to the existing HLE read path when the runtime, API, request shape, or backing is unsupported. - Correct the DirectStorage COM vtable slots and pin them with layout/slot tests. This is complementary to #2157, #2441, #2332, and #2331. ## Test plan - [x] `cargo test --locked -p victory-gpu --lib dstorage::tests` - [x] `cargo test --locked -p victory-hle --lib modules::dstorage::tests` - [x] `cargo clippy --locked -p victory-gpu --all-targets` - [x] `cargo clippy --locked -p victory-hle --all-targets` - [x] `cargo xtask policy --staged` - [x] Short real-game fallback smoke test with ray tracing enabled - [ ] Static real-game A/B on a host with the DirectStorage runtime installed The ignored native-runtime smoke test cannot run on the current host because `dstorage.dll` is not installed; the fallback path remains covered by the HLE tests. No game assets, screenshots, logs, executables, or local paths are included.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 17:00:22 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-hle/src/modules/dstorage.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/2761/head:github-bot/gh-2761'
git switch 'github-bot/gh-2761'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2761'
git switch 'github-bot/gh-2761'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2761'
git switch 'github-bot/gh-2761'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2761'
git switch 'main'
git merge --squash 'github-bot/gh-2761'
git switch 'main'
git merge --ff-only 'github-bot/gh-2761'
git switch 'main'
git merge 'github-bot/gh-2761'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2761
No description provided.