gpu(pool,resource),play: drain sparse heaps, add 16 MiB 8 GB blocks, and fix prelude aliasing guard #171
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!171
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/171/head"
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?
@Androtim on GitHub · 2026-11-29 23:40 UTC · original
Androtim:feat/iter169-sparse-pool-drain-and-8gb-vram-reclaim→main· +350 −93 · 5 files · 1 commits · closed without mergingSummary
Addresses texture pool fragmentation, committed-texture prelude crashes, and 8 GiB VRAM reclamation under heavy open-world pressure (#149):
crates/victory-gpu/src/pool.rs,resource.rs):encode_pool_tag(),PoolBlockStats, andpool::block_stats()(snapshotted BEFORE lockingtextures()to avoid lock inversion) plusHosted::pool_tag.pool_eviction_policy()inlet_go_idle()andslot_evict()so standalone textures (tag == 0) and sparser blocks drain first (occ_bucket,250 mssparse drain when trapped holes >= 256 MiB) without blocking normal eviction on dense heaps.pool.rs,resource.rs,play.rs,host.rs):VICTORY_TEXTURE_BLOCK_MB(4–64 MiB power-of-two, default64;play.rslow_vramsets16alongsideVICTORY_SLOT_EVICT_PERCENT=78/76,LOW=70/68,VICTORY_SLOT_EVICT_MB=384) andPool::size()/Pool::scale().for empty in [false, true]), eliminating premature pool block growth.host.rstexture-block log formatting to scale byblock_bytes() >> 20instead of hardcoded64.crates/victory-gpu/src/host.rs):D3D12_RESOURCE_BARRIER_TYPE_ALIASINGin upload preludes withcrate::pool::is_pooled(©.texture)(matchingtexture.rs), preventingE_INVALIDARG (0x80070057)on large committed fallback textures (4224x4224) that bypass 16 MiB blocks.Verification
xtask policy(311 files ok),cargo test -p victory-gpu pool::,cargo test -p victory-gpu resource::,cargo test -p victory play::, and dualclippy --workspace --all-targets -- -D warnings(standard +--features diagnostics) all passed.RTX 4060 Ti 8 GB,--release --features diagnostics,DLSS quality, 75s in-worldD:\victory-data\cache-minivi-pr165):pr170-v2-s):12.45 fpsmedian (+39% vs8.95 fpsbaseline,preparing 38.9 ms),max_draws=11921,0crashes,20/24lit frames (luma=102.92,near_black=0.0%,edge_energy=6.96,magenta=0.0%),204x 16 MiB blocks with only263 MBfree (8%),over=0 MB.pr170-v2-x):10.6 fpsmedian (94.0 ms),max_draws=13913,used_max=6775 MB / budget_min=6820 MB(over=0 MB,182x 16 MiB blocks,1block reclaimed to DXGI),0crashes,18/24lit frames (luma=104.66,edge_energy=7.96,magenta=0.0%).(Note:
room_falseremains ~93–94% under 8 GiB heavy 14k-draw loads until per-threadcode_dwordscratch allocations are moved off private shader arrays in the follow-upSLOT_CODE_TABLEPR.)Related: #149
@Androtim on GitHub · 2026-11-30 00:03 UTC · original · edited 2026-11-30 15:02 UTC
Automated triage for the maintainers (not an approval).
Verdict:
needs-rebase· CI (check):passingThis PR no longer merges cleanly into
main.To change the verdict: Rebase onto current
mainand resolve conflicts; CI and triage will run again automatically.Generated with Antigravity CLI (
agy).@Androtim on GitHub · 2026-11-30 10:27 UTC · original
GitHub reports merge conflicts against current
main. Please rebase onto latestmain.@Androtim on GitHub · 2026-12-01 01:38 UTC · original
Closing as superseded by newer merged/tracked work per #276 (Core Architecture Rewrite Backlog).
Pull request closed