Repository navigation
Conversation
Collaborator
Author
|
Closing as obsolete after #409 (\windowup.rs\ was removed in the combined base). Keeping the PR queue clean. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reclaims idle surplus upload slabs from the transient-window upload pool (
third_party/victory/crates/victory-gpu/src/windowup.rs+ 1-line hook inhost::sweep):VICTORY_CARD_WINDOW_UPLOAD=1,windowup::allocgrowsPOOL.slabsin 16 MiB D3D12 upload slabs up toVICTORY_CARD_WINDOW_UPLOAD_MB(default 512 MiB) during loading/streaming bursts, and previously never released idle slabs once gameplay settled back to 1–2 active slabs.last_used(crate::host::moment()) on eachPooledSlab.windowup::let_go_idle()called fromhost::sweep()using the same adaptiveram_idle_ms+IDLE_FRAMES = 4policy asshadow::let_go_idle()andtexture::let_go_idle().live == 0(allChunks already dropped after GPU completion inHost::card_done) outside thePOOLmutex.POOLEDandpool.curaccurately and logs reclaimed bytes viahost::trail.windowup::tests::trim_idle_releases_unused_surplus_slabs_and_keeps_live_onesverifying live slabs are never evicted, idle surplus slabs are released and deducted fromPOOLED, and the last warm slab stays reusable.Verification
cargo test -p victory-gpu --lib windowup::tests(default and--features diagnostics)cargo xtask policyinsidethird_party/victory