gpu(texback,host): fix readback coherency, cache footprints, and persist readback mappings #160
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!160
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/160/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 20:03 UTC · original
Androtim:feat/iter158-texback-coherency-and-persistent-readback→main· +413 −120 · 4 files · 1 commits · closed without merging## Summary
card_steps::writersnow emitsWriter { shadow: None }for every range inflight.texture_back_ranges, preventing staleShadowbytes from being served while a texture readback flight is still in flight.host::joinablenow includesdeferred.texture_backsranges inwritten, preventing later joined parts from preparing CPU reads ahead of a pending texture readback.ReadbackPoolbuffers (MappedReadback):D3D12_HEAP_TYPE_READBACKbuffers mapped once across reuse inHost::texture_readbacks, share the pool withlist.rs::read_back(defer_read_back), addReadbackPool::trim_allfor host memory pressure, and retire any remaining readback leases throughhost::retireinDeferred::dropif a list is dropped unreset.Map/Unmapcalls intexback::landandhost::read_backs.texback:Arc<Footprints>by texture shape (Width, Height, DepthOrArraySize, MipLevels, Format) to eliminate per-readbackGetCopyableFootprintsCOM calls and vector allocations.TILED/TITLE) while preservingVICTORY_TEXBACK_SAME=1diff-only landing andReadbackStatstelemetry.Test plan
cargo run -p xtask -- policy: passedcargo test -p victory-gpu texback::: passedcargo test -p victory-gpu card_steps::: passedcargo test -p victory-gpu readback_pool_tests: passedcargo test -p victory-gpu host::: passedcargo clippy --workspace --all-targets(default and--features diagnostics) with-D warnings: passed@Androtim on GitHub · 2026-11-29 20:14 UTC · original
### Live GPU Verification (RTX 4060 Ti 8 GB, Series S, 60s In-World via
verify-world.ps1)ok: true)world_windows=13,max_draws=10603, median9.4 fps(106.0 ms)crashes=0,no_host_texture_errors=0used_max=5612 MB/budget_min=6689 MB(over=0 MB,room_false=9.1%)uploaded=44192,final_waiting=4852,max_waiting=29451mapped_rate=6.65 ms/world_sec(15000calls,longest=13.6 ms)copied=10880,created=1223,reused=12251(~90.9% reuse),allocation_failures=0,peak_idle_bytes=17825792pngs=24,lit=17/24,median_luma=105.6,near_black=0.0%,edge_energy=7.02,magenta=0.0%(visually inspectedframe-3599.pngandframe-3657.png— clean daylight outdoor scene lighting and textures)@Androtim on GitHub · 2026-11-29 21:03 UTC · original · edited 2026-11-30 11:04 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-12-01 01:38 UTC · original
Closing stale/conflicted backlog PR per #276. Superseded by the active root-architecture replacement pillars with isolated plain --release A/B verification.
Pull request closed