feat(dstorage): submit half-full queues and enforce capacity #34
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Freminet--ScarlettX!34
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/34/head"
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?
@mrb-eel on GitHub · 2026-11-21 15:26 UTC · original
mrb-eel:codex/directstorage-queue-submission→main· +154 −31 · 2 files · 1 commits · merged 2026-11-22 09:58 UTCScarlettX's DirectStorage worker only sees requests after an explicit
DStorageSubmit. A title following the Xbox queue contract can fill half its queue and wait for a read or notification that never gets submitted.Automatically submit staged entries when reads, status markers or fence signals fill half the queue. Keep a single FIFO with a submitted prefix so explicit and automatic submission use the same path. Count queued and active entries against the capacity, wake blocked producers as entries retire, and wake them when the queue closes. The shim rejects a reentrant enqueue from its own signal callback when the queue is full, since that callback would otherwise block its worker.
The Xbox GDK documents the threshold for each enqueue method and the behavior at capacity. EnqueueRequest, EnqueueStatus, EnqueueSignal, queue capacity.
Verification
dstorage_xs.dstorage_xs.dllandtest_dstorage_xvd.exeRelease targets for Windows x64 with LLVM-MinGW. Native Windows execution and retail title testing remain pending.Developed with assistance from OpenAI Codex.