Iter 17: Wave32 water tile slots, strict VRAM pool gate, and NVIDIA book guard #2
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2"
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-28T00:12:41Z.
Summary
Ports three targeted stability, rendering, and VRAM-governance improvements onto
main(f3c0c33), creditingfxceless/victory-forkandxss3009:crates/victory-shader/src/emit/water_tile_slots.rs,emit/mod.rs,apps/victory/src/translate.rs):fxceless/victory-fork(cd93552, idea byxss3009): rewritesCS_TransmissionVolumetrics_GenerateTilesbefore translation on 32-lane hosts so every lane allocates 1 slot cleanly, preventing second-wave slots from overwriting first-wave slots and eliminating dark16x16patches on open water around boats, piers, and lamps (VICTORY_WATER_TILE_SLOTS=0opts out).translate_plainand offlineapps/victory/src/translate.rs.crates/victory-gpu/src/{pool,resource,draw,shadow,host}.rs):fxceless/victory-fork(2eade68) while preserving MiniVI's 8 GB VRAMtargets_room_kept_bytes(<= budget / 4on<= 9 GiBGPUs) andmemory_card_budgetscaling:VICTORY_POOL_GATE=1, default on) + adds fullest-block-first packing (VICTORY_POOL_FULLEST=1, default on) so unplaceable waitable heap textures hold their existing slot instead of overflowing DXGI VRAM budgets, and reservestargets_to_comeinsideblock_roomandshadow::by_address(by_address_room)."texture blocks..."telemetry inhost.rs.crates/victory-gpu/src/book.rs):book::texture_addresswithif !crate::indirect::amd(&host.device) { return None; }becausebook::decodeparses AMD RDNA 2+ descriptors and produced spuriousPOOL: the card reads a pooled texture's first level past the end...ERRORlogs on NVIDIA GPUs.Rig Specs Tested On
32.0.16.2124)Run Settings & Profile
diag&release(standalone-C link-self-contained=yes,bad_dlls=0) @feat/iter17-vram-pool-gate-and-water-tilesseries-s—720p(0.6666667render scale)offDLSS quality(Streamlinev2.14.16)off(unattended smoke test baseline)VICTORY_*Overrides:verify-live.ps1Series S 720p preset (VICTORY_NO_WATCHDOG=1,VICTORY_EARLY_DEPTH=1,VICTORY_NAN_SCRUB=1,VICTORY_SKIP_BINK=1,VICTORY_DLSS=1,VICTORY_DLSS_MODE=quality,VICTORY_D3D12_DRED=light)34s–120s), plus offline fullshaderscache warmMeasurements & Verification
30.0FPS on menu (33.3 ms/frame) (unattended smoke baseline — interactive in-world boat/post-landing playtest pending)cargo clippy --workspace --all-targets --locked -- -D warnings(passed)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings(passed)cargo test --locked -p xtask(6 passed; 0 failed,asset policy: 295 files ok)cargo test -p victory-shader --lib water_tile_slots -- --test-threads=1(2 passed; 0 failed)cargo test -p victory-gpu -- --test-threads=1(452 passed; 0 failed; 36 ignored, including 4 newpool+resourcetests)Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T00:30:17Z.
CI & Local Verification Complete (
de65b67)success(clippy,clippy --all-features,xtask, workspace tests,victory-shader,victory-gpu)-C link-self-contained=yes):diag/victory.exe,diag/victory_sm.exe,release/victory.exeall built withbad_dlls=0VICTORY_EARLY_DEPTH=1,VICTORY_NAN_SCRUB=1):25,759shaders cached,226untranslated (684 s)0failures across watched water/lighting/hair digests includingf5d10cde74333782(CS_TransmissionVolumetrics_GenerateTilesrewritten viawater_tile_slots.rs)verify-live.ps1): 7/7[PASS]in34 sapplied=2(VICTORY_NO_WATCHDOG=1)30.0 fps/33.3 ms/frame(11 draws/framex3 windows)DLSS / Streamline clean(loaded=2, fails=0, Streamlinev2.14.16)0crashes / DRED resets,0critical wave64 shader failures,0lingering processespool_errors=0(confirmedbook::texture_addressNVIDIA guard eliminated the bogusERROR victory_gpu::poolmessages)texture blocks: 5 blocks (320 MB), 29 MB free; a new block: 1166 MB + 64 MB + 850 MB buffers + 278 MB targets to come = 2358 MB vs 6462 MB lineImported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T00:43:06Z.
Automated triage for the maintainers (not an approval).
Verdict:
needs-gpu-test· CI (check):passingTechnical Review — PR #2
Verdict:
needs-gpu-test(CI passing; logic and safety look solid, but in-world real-GPU verification is warranted for the wave32 shader rewrite and strict VRAM pool gate).What Looks Good
crates/victory-shader/src/emit/water_tile_slots.rs,emit/mod.rs,apps/victory/src/translate.rs):lower::host_max_wave() == 32, exact container digest (CONTAINER),HwStage::Cs,wave64, byte length (2112), and FNV-1a hash (CODE), withVICTORY_WATER_TILE_SLOTS=0opt-out.translate_plain) and offline (apps/victory/src/translate.rs) viaemit::host_form.v_mov_b32 v5, 1(0x80 | 1) + the original atomic add/waits/size-load, padded withs_nopso branch targets and surrounding code stay aligned.crates/victory-gpu/src/{pool,resource,draw,shadow,host}.rs):Pool::take_ripe(Grow::Yes/Must/No),no_fitcaching (invalidated onaddandreclaim), andVICTORY_POOL_FULLEST/VICTORY_POOL_GATEopt-outs are clean and well-tested.draw.rs(State::heap_textures) runspool::waiting(|| resource::host_resource(...))before mutating a slot whenpool::full()is active;resource::host_texture_asandresource::hostedrespectpool::waits()so waitable textures neither fall back to standalone committed resources nor get permanently markedrefused.targets_room_kept_bytesandshadow::memory_card_budget) is preserved, whileblock_roomandshadow::by_address(by_address_room) now reservetargets_to_come.book::texture_addressguard (crates/victory-gpu/src/book.rs):!crate::indirect::amd(&host.device)cleanly prevents AMD RDNA 2+ descriptor decoding from running on NVIDIA/Intel descriptors and emitting bogusPOOL:errors.Minor Non-Blocking Notes
water_tile_slots::tests::an_append_becomes_one_add_a_lane_and_keeps_its_lengthduplicates the rewrite loop body rather than calling a shared helper used byrewrite(), so future edits torewrite()wouldn't be directly exercised by that test.resource::block_fitsuses plain+(used + kept + POOL_BLOCK <= line); usingsaturating_add(as inby_address_fits) would be slightly more defensive.Local GPU Verification Needed
Because the PR body notes only a boot-to-menu smoke test so far, please run an in-world playtest on an NVIDIA 8 GB Wave32 host (e.g. RTX 4060 Ti) covering open water (boats/piers/lamps) and sustained VRAM pressure before merging.
(Automated technical triage review — does not constitute formal maintainer approval.)
Generated with Antigravity CLI (
agy).Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T21:11:08Z.
Real-GPU Playtest Report (Combined Build 1 Stack — RT OFF)
Tested in combined Build 1 (
origin/main+ Build 1 PRs#2, #3, #4, #6, #7, #9, #10, #11, #12, #14, #15, #18, #19, #22, #25, #26, #27, #33, #34, #36, #40, #43, #44, #46) on NVIDIA GeForce RTX 4060 Ti (8 GB), Windows, Series S (quality-720p, DLSS Quality):1a-build1-world.log) — 0 crashes, 0 DRED resets, clean exit.28.2 fps(35.4 ms/frame) mid-run,16.9 fps(59.3 ms/frame,4,446draws/frame) in heavy scene.tearing=true,0refused presents.926c46bab3b86bd6): Translated and built host PSO cleanly.VICTORY_THIN_GATE): Active (0no free dynamic descriptor slotswarnings).6,934 MBin use (33texture blocks =2,112 MB,1,036 MBfree),0bogusPOOL:errors.16,577upscalings (0failed).8,802textures were still queued /206non-RT draws dropped without a host pipeline; no D3D12 errors.