Preserve pending pipeline records on write failure #2249
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2249
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2249"
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?
@LucaruluDev on GitHub · 2026-11-29 11:02 UTC · original
LucaruluDev:fix/pipeline-book-flush-durability→main· +488 −55 · 1 files · 2 commits · merged 2026-11-30 14:12 UTCWhat it changes
The pipeline book can lose pending records when
opening or writing its cache files fails.
This change:
when a subsequent pipeline write fails.
records currently being written.
On Windows, an append-only file handle can fail
truncation with ERROR_ACCESS_DENIED (5).
The revised implementation opens the file with
write access and seeks to its end.
How it was tested
Hardware: Ryzen 7 9700X, RTX 5070 12 GB,
32 GiB DDR5, Windows 11.
Synthetic buffered file I/O benchmark,
median of seven runs per mode:
Batched writes are preserved, with a small additional
cost for recoverable write handling.
No shader changes.
Limitations
This change assumes a single pipeline book writer.
It handles reported I/O failures but does not
guarantee persistence across power loss or abrupt
process termination.
The 64 MiB limit applies to pending encoded payload,
not total process memory.
Gameplay performance has not been measured.
Checked for overlap
AI-assisted implementation and validation using
Claude Code and OpenAI Codex.