No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/PastiiJay--klbf-lab!46
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-46"
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?
@Vladimir-Human on GitHub · 2026-11-25 21:08 UTC · original
Vladimir-Human:perf/vram-12gb-warp-fix→beta· +1658 −183 · 10 files · 3 commits · openAI-assisted clean-room contribution (
victory-gpu, D3D12 WARP/hardware unit tests only — refs #30 and fixes #32; no title files used).Summary
Combines two orthogonal improvements in
crates/victory-gpu/src/onbeta(e328c88):DynamicPool(helps #30):resource.rs: eliminates theroom_percent..90%idle-eviction dead zone (evict_trigger_percentdefaultroom_percent - 2, floor45), tightens high-pressure grace to 30 frames / 1000 ms, includestiles::Tiledreserved textures (HostTexture::card_bytes()) +card_room_kept() + targets_room_kept()+tiles::given_total()in pressure accounting, adds safe rate-limitedreclaim_unpinned_idlefallback inroom(), and closes the Pass 1 -> Pass 2 TOCTOU window by re-verifyinghost_wrote,is_idle_at, COM pointer identity,Arc::strong_count == 1, andhost::references == 1underr.host.madebefore retiring outside locks.descriptor/host.rs&descriptor.rs: replaces linear ring-walk +too_longwith a coalescingO(1)bitmask small-bucket (1..=32) +BTreeSetlarge-extentDynamicPool, opens fullcount..nullview-heap headroom, and keepsHostHeap::evict_keptstrictly aligned withHostHeap::mirror'sSHADER_HEAPS -> made -> {kept, placed, textures}lock order while retiring COM refs outside all locks (zero edits toHostHeap::mirror/ stripes in #16).texture.rs: tracksStaging::{copy_queued, unflushed}accurately across multi-list submissions (defer_hostclear immediately afterdefer_texture) and trims clean idle staging buffers under pressure while keeping host textures and dirty/unflushed uploads intact.d3d10warp.dll0xc0000005test crashes & parallelwatch::testsVA-reuse flake (#[cfg(test)]ONLY):host::warp_test_lock()guarding all 5 WARP D3D12 test fixtures (host.rs,indirect.rsWarpHarness,inplace.rs,shadow.rs,tiles.rsRig),Host::test_sweep_lock()for sweep/eviction tests, and movestitle_memory_remapped(...)beforeUnmapViewOfFile/VirtualFreein the 3watch.rs#[cfg(test)]view-teardown tests (matchingDrop for Viewso parallel Windows VA reuse never collides). Zero non-test runtime edits for #32, zero weakened/skipped/retried assertions.Verification (
betae328c88, RTX 4070 SUPER / i5-13400F, Rust 1.98)git diff --check beta..HEAD: clean;git merge-treeclean againstbeta, #41, #42, #43, and our BVH PR.cargo clippy -p victory-gpu --all-targets(default&--features diagnostics): 0 warnings in all added/modified code.cargo test -p victory-gpu --lib --lockedruns (WITHOUT--test-threads=1): 10/10 PASSED (161 passed; 0 failed, 3 ignored per run,1.29s–5.29s, 0 WARP crashes).@PastiiJay on GitHub · 2026-11-25 21:10 UTC · original
Thanks a lot @Vladimir-Human! The 12 GB dead-zone stalls are what @mayauxpaul8-droid hit in #30, and a fix for the #32 parallel WARP test crash is welcome too. Same as your other PRs: it goes into our one-change-at-a-time queue on the RX 9070 XT (same save, same 7-minute run, fps and picture against our reference build), and results will be posted here. A run on a 12 GB card from #30 would be the real proof, so @mayauxpaul8-droid, if you can test this branch, please say so here.
@HandshakeHackin on GitHub · 2026-11-25 21:20 UTC · original
Two details for interpreting the hardware retests. The original #30 tester reports a standard RTX 4060, which NVIDIA lists with 8 GB. The other tester in that issue reports a 16 GB RTX 4080 SUPER. The 4060 run would give us an 8 GB comparison. A 12 GB card would cover the capacity in the PR title. RTX 4060 report · 4080 SUPER report · NVIDIA specifications
I also ran the threshold functions from
b1c90b3in isolation with a synthetic 10 GiB budget. With both environment overrides unset, eviction became preemptive at 88% effective usage and high-pressure at 90%. WithVICTORY_TEXTURE_ROOM_PERCENT=82, those transitions were 80% and 82%, as in the unit fixture. The fixture comment calls 82 the default. Including the room setting and thevram_used_mb/vram_budget_mbvalues from the eviction line would make the A/B results easier to compare. Threshold calculation@PastiiJay on GitHub · 2026-11-25 21:23 UTC · original
Thanks for the correction @HandshakeHackin, you're right: the RTX 4060 in #30 is the standard 8 GB model, so I was wrong to call it a 12 GB case. A run there gives us an 8 GB comparison, and a 12 GB card would still be the direct test of the PR title.
Noted for our A/B runs: we'll log the room setting and the
vram_used_mb/vram_budget_mbvalues from the eviction line. @Vladimir-Human, your thresholds come out at 88/90% with the overrides unset while the fixture comment calls 82 the default; could you say which one you intended?@Vladimir-Human on GitHub · 2026-11-26 00:04 UTC · original
@PastiiJay @HandshakeHackin 88/90% is the intended default: preserving klbf-lab's existing
oom_percent() = 90 default, with preemptive eviction starting 2 percentage points below (88%) to eliminate any dead-zone regardless of VICTORY_TEXTURE_ROOM_PERCENT.
The 82 in the unit test fixture comment was a stale leftover from ictory-perf when porting #30. Pushed
9c68c0bto update crates/victory-gpu/src/resource.rs:oom_percent = 90, rigger = 88: no trigger at 87%, preemptive at 88%, high pressure at 90%).
Re-verified cargo test -p victory-gpu resource (12/12 passed) and cargo run -p xtask -- policy --staged (1 files ok). Ready for your A/B queue!
@PastiiJay on GitHub · 2026-11-26 00:05 UTC · original
Clear, thanks @Vladimir-Human: 88/90% as the default, 82 only as the explicit override, and the test now says so. It's in the queue.
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.