Add opt-in Windows DirectStorage staging for compressed reads #2157

Manually merged
github merged 1 commit from github-bot/gh-2157 into main 2026-11-30 14:17:11 +00:00 AGit
Owner

@⁠nawnie on GitHub · 2026-11-29 10:01 UTC · original
nawnie:directstorage-native-staging-pr → main · +844 −37 · 12 files · 1 commits · merged 2026-11-30 14:12 UTC

This adds an opt-in Windows DirectStorage backend for compressed file reads into owned staging buffers. Set VICTORY_DSTORAGE_IO=windows to enable it. Raw guest destinations continue through the existing Win32 reader. A missing bridge, saturated queue, oversized request, or native failure falls back to Win32. The upstream scratch-buffer pool and its budget remain in use.

Validation

  • On the preceding gameplay build with this bridge, the final complete sample recorded 259,066 successful native reads and 1,223,686 busy fallbacks, with zero native timeouts, aborts, or other errors. This confirms live use of the backend and shows where the four-slot default falls back most often.
  • In a synthetic test of 1,200 byte-checked 64 KiB reads across 12 threads, switching the bridge from polling to event completion reduced median batch time from 209 ms to 31 ms across three runs per version. Both versions completed 400 native reads and fell back to Win32 for 800 busy requests per run. This measures the completion mechanism in the synthetic workload. Gameplay frame time was outside the benchmark.
  • On this PR branch, 29 DirectStorage tests passed, plus the native EOF/fallback, concurrent byte-parity, compressed-source routing, and synthetic benchmark tests with the Windows runtime DLLs present. A controlled gameplay A/B on this branch remains open.

The PR contains source and build instructions. I can share a runner-only test build, diagnostics, or reproduction details if that helps with review.

**@⁠nawnie** on GitHub · 2026-11-29 10:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2157) `nawnie:directstorage-native-staging-pr` → `main` · +844 −37 · 12 files · 1 commits · merged 2026-11-30 14:12 UTC This adds an opt-in Windows DirectStorage backend for compressed file reads into owned staging buffers. Set `VICTORY_DSTORAGE_IO=windows` to enable it. Raw guest destinations continue through the existing Win32 reader. A missing bridge, saturated queue, oversized request, or native failure falls back to Win32. The upstream scratch-buffer pool and its budget remain in use. ### Validation - On the preceding gameplay build with this bridge, the final complete sample recorded **259,066 successful native reads** and **1,223,686 busy fallbacks**, with zero native timeouts, aborts, or other errors. This confirms live use of the backend and shows where the four-slot default falls back most often. - In a synthetic test of 1,200 byte-checked 64 KiB reads across 12 threads, switching the bridge from polling to event completion reduced median batch time from **209 ms to 31 ms** across three runs per version. Both versions completed 400 native reads and fell back to Win32 for 800 busy requests per run. This measures the completion mechanism in the synthetic workload. Gameplay frame time was outside the benchmark. - On this PR branch, 29 DirectStorage tests passed, plus the native EOF/fallback, concurrent byte-parity, compressed-source routing, and synthetic benchmark tests with the Windows runtime DLLs present. A controlled gameplay A/B on this branch remains open. The PR contains source and build instructions. I can share a runner-only test build, diagnostics, or reproduction details if that helps with review.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 10:06:36 +00:00
github manually merged commit bdf1da6588 into main 2026-11-30 14:17:11 +00:00
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!2157
No description provided.