Reuse the raw inflater across SGD5 records #2936
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!2936
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2936"
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?
@Brazzo978 on GitHub · 2026-11-29 18:54 UTC · original
Brazzo978:perf/reuse-sgd5-inflate→main· +18 −1 · 1 files · 1 commits · openWhat it changes
SGD5 records contain independent raw DEFLATE streams. Reuse one
zlib-rsinflater per calling thread and reset its stream state before each record. This keeps the inflater's window allocation available for the next record. Each caller still owns its decoded output. The regression test decodes a truncated stream, then a valid stream and an empty stream on the same thread.How it was tested
cargo test --locked --profile diag -p victory-gamepassed on Windows 10 22H2 with Rust 1.98.1 (MSVC target).Checked for overlap
Codex helped implement and review the change.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.