gpu(descriptor,shadow): unpin idle loose window buffers on sweeper path (-4.7 GB Working Set) #508
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!508
Loading…
Reference in a new issue
No description provided.
Delete branch "hingeowl/Darner:pr/unpin-idle-buffers"
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?
What it changes
Arc::strong_count == 1, idle >= 15 s) can remain pinned by staleHostHeap::keptCOM references (COM refs > 1), preventingshadow::let_go_idlefrom freeing them and inflating process Working Set during long city flights.ReTerryDavis/ReVIctory(5c47b6d8bc88ba11f07dae52c38bf9fe2edd80a3), sweeper-only path (intentionally omits thedraw::heap_buffer_passVirtualQueryprobe, which regressedcam-city60p95 by +17 ms / p99 by +37 ms in A/B testing):HostHeap::unpin_buffersanddescriptor::unpin_idle_buffers.descriptor::unpin_idle_buffers(&targets)every 3 s inshadow::let_go_idlefor idle loose windows so staleHostHeap::keptCOM references release andlet_go_idlecan free them.How it was tested
Tested revision:
e20ecf3(rebased ontomainc8258f9)Commands and results:
cargo xtask policy— passcargo clippy --workspace --all-targets --locked -- -D warnings— passcargo clippy --workspace --all-targets --all-features --locked -- -D warnings— passcargo test -p darner-gpu --locked— passChanges a default: yes (sweeper unpins idle loose window buffers automatically during
let_go_idle).A/B result (
cam-city60, ABBA 4 runs on RTX 4090 + Ryzen 9 7950X3D, Series X, HW RT,--profile fast):Gates run on that revision:
cargo xtask policy,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo clippy --workspace --all-targets --all-features --locked -- -D warnings,cargo test -p darner-gpu --locked.Gameplay: RTX 4090 (24 GB), Ryzen 9 7950X3D, Series X profile, HW RT.
Hardware dependence: likely general (reduces host RAM working set on all GPUs).
Coverage gaps: full workspace
cargo test --workspace --lockednot re-run one20ecf3(onlydarner-gpu, the only modified crate).Checklist
main.docs/asset-policy.md.Checked for overlap
[pr-performance][memory] gpu(descriptor,shadow): unpin idle loose window buffers on sweeper path (-4.7 GB Working Set)to gpu(descriptor,shadow): unpin idle loose window buffers on sweeper path (-4.7 GB Working Set)Test needed — commit
e20ecf34; what to check:Arc::strong_count == 1, idle >= 15 s) can remain pinned by staleHostHeap::keptCOM references (COM refs > 1), preventingshadow::let_go_idlefrom freeing them and inflating process Working Set during long city flights.ReTerryDavis/ReVIctory(5c47b6d8bc88ba11f07dae52c38bf9fe2edd80a3), sweeper-only path (intentionally omits thedraw::heap_buffer_passVirtualQueryprobe, which regressedcam-city60p95 by +17 ms / p99 by +37 ms in A/B testing):HostHeap::unpin_buffersanddescriptor::unpin_idle_buffers.descriptor::unpin_idle_buffers(&targets)every 3 s inshadow::let_go_idlefor idle loose windows so staleHostHeap::keptCOM references release andlet_go_idlecan free them.Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.