gpu(descriptor): default capped hosts to 393,216 dynamic slots #155
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/155"
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?
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-29T19:11:05Z.
Default capped 1,000,000-view host descriptor heaps (
null < PORTABLE_VIEWS, e.g. NVIDIA) to393,216dynamic slots (PORTABLE_DYNAMIC_DEFAULT, leaving606,783static title slots) and honorVICTORY_DYNAMIC_SLOTSoverrides up toPORTABLE_DYNAMIC_CAP(524,288) viadynamic_slots_for. Previously capped hosts were fixed at262,144(DYNAMIC), which could exhaust dynamic descriptor table allocations during heavy area streaming.Changes (
crates/victory-gpu/src/descriptor/host.rs)PORTABLE_DYNAMIC_CAP(524,288),PORTABLE_DYNAMIC_DEFAULT(393,216), anddynamic_slots_for(count, null, requested).dynamic_slots(count, null)to respectVICTORY_DYNAMIC_SLOTSon capped heaps while keeping uncapped heaps unchanged.dynamic_slots_for_capped_and_uncapped_hosts.Verification
cargo +1.98.1-x86_64-pc-windows-gnu run --locked -p xtask -- policycargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --locked -- descriptor::host::cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --locked --all-targets -- -D warnings(default features and--all-features)Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-29T20:02:55Z.
Automated triage for the maintainers (not an approval).
Verdict:
needs-gpu-test· CI (check):passingReview Summary
Clean, well-scoped change in
crates/victory-gpu/src/descriptor/host.rs:dynamic_slots_for(count, null, requested)withPORTABLE_DYNAMIC_DEFAULT(393,216) andPORTABLE_DYNAMIC_CAP(524,288), and wiresVICTORY_DYNAMIC_SLOTSinto capped hosts (null < PORTABLE_VIEWS) as well asnull == 0while leaving uncapped hosts (null >= PORTABLE_VIEWS) unchanged.DYNAMIC.min(cap) <= cap) and guaranteesextra <= null, preventing underflow atnull - extrainHostHeap::new.dynamic_slots_for_capped_and_uncapped_hostscovers default, bounded override, floor/cap clamping, and uncapped paths.Real-GPU Verification Note
On 1,000,000-view capped hosts (
PORTABLE_VIEWS, e.g. NVIDIA), raising the default from262,144(DYNAMIC) to393,216(PORTABLE_DYNAMIC_DEFAULT) reduces static title slots (fitted = null - extrainHostHeap::new) from737,855to606,783. Because the existing comment onDYNAMICnotes peak title view slots around~720,000, this should be smoke-tested on a capped NVIDIA GPU to confirm that views above606,783do not regress rendering or increase dynamic-slot pressure enough to offset the added headroom (and thatVICTORY_DYNAMIC_SLOTS=262144cleanly restores the prior split if needed).(Note: related to the NVIDIA dynamic-slot expansion bundled in broader PR #1, though this PR cleanly isolates the change.)
Generated with Antigravity CLI (
agy).Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-29T21:27:10Z.
Automated RTX 4060 Ti 8 GB Open-World A/B hardware verification PASSED (
playtest/wave5vsorigin/mainb1b6dc1,VICTORY_LEVELS_ON_DEMAND=0play-parity):cargo test(RTX 4060 Ti): 645 passed, 0 failed (victory39/39,victory-shaderemit::wave64_tests19/19 &lower19/19,victory-gpu568/568).scripts/verify-world.ps1, DLSS Quality + open-world save):9.4 fpsvs7.5 fps(+1.90 fps / +25%), min8.3 fpsvs0.8 fps, preparing53.6 msvs60.0 ms5760 MBvs6005 MB(-245 MB,0 MBover budget);no room for new oneshalved (9,000vs18,000);max_waitingdropped (36,432vs41,431)0mismatches (other_bytes=0, showed_another_view=0, failed=0vs5and2on baseline)mapped_rate1.63 ms/svs6.9 ms/s(-76%, max12.9vs51.9 ms)frame-5975.png,frame-5983.png),edge_energy=4.69vs3.88,near_black=0.02%,magenta=0.0%(and#1412bf6800showed zero visual artifacts).