gpu(panel): retire old Buffers on format/scale change instead of mem::forget #3235
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!3235
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3235"
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?
@RanoGames on GitHub · 2026-11-29 20:55 UTC · original
RanoGames:fix/panel-retire-buffers→main· +3 −1 · 1 files · 1 commits · closed without mergingWhat it changes
Fixes permanent GPU/COM resource leaks in
crates/victory-gpu/src/host/panel.rs:Panel::draw,Notice::draw, and the F2 advisor path usedstd::mem::forget(self.buffers.take())when(format, scale)changed (or when the start notice expired), permanently leaking the oldBuffers(upload resources +cardID3D12Resource).mem::forgetwithif let Some(old) = self.buffers.take() { super::retire(old); }so drops are deferred viahost::retireuntil in-flight GPU work finishes.Same pattern as the menu fix (#3049).
How it was tested
Buffersviamem::forget.Buffersare queued inhost::retireand dropped after GPU submissions finish.cargo testpassed for the crates it touches: yes (cargo test --locked -p victory-gpu --lib -- host::panel;cargo xtask policy --stagedpassed)Checked for overlap
panel.rs/mem::forget/Buffers. Related: #3049 (menu only), #915 (broader mixed PR that also mentions panel).6e804d49b8tod6c631e45e@RanoGames on GitHub · 2026-12-01 16:24 UTC · original
Closing in favor of #915, which already retires the startup notice buffers when the notice expires.
Pull request closed