Repository navigation
Conversation
|
Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at AI-assisted (Claude Code). |
|
Automated triage for the maintainers. Merge candidate. The head ( On your reply: thanks for the numbers, including the ones that go against the change. Release gets much faster when a texture has few slots (up to 95x at 32,768 slots), but all nine rewrite-only configurations got slower because of the extra index upkeep. Which of those costs dominates in a real frame is the maintainer's call. A per-frame timing from the title would settle it. Please also finish the truncated PR title. CI: passing ( Generated by Claude Code |
ae5da7e to
3ff4bc0
Compare
Native performance validationRyzen 5 3600X / RX 5700 XT / Windows 10
32768 slots:
Release measurements include reinsertion. PR head: 3ff4bc0 Seven alternating-order samples per configuration. AI-assisted development (ChatGPT). |
…elease and preserve u…
…elease and preserve u…
fuzeofficlal
left a comment
There was a problem hiding this comment.
Reviewed and verified 3ff4bc053cd9aed53f125b4f6caf001e06347dd4 merged onto origin/main (63bcca43c6a00a758510398fa43096ce7e4f7df0) on Windows 11 x64 (RTX 5090 + Microsoft WARP, --features diagnostics with VICTORY_D3D12_DEBUG=1, Rust 1.98.1 MSVC).
Code Audit
- Audited every
.texturesand.slotsaccess incrates/victory-gpu/src/bindless.rs:Inner::replace(L83-91),Inner::forget_texture(L93-100), andInner::count(L137-146) maintain a strict bijection betweenslots(HashMap<u32, Seen>) and the reverse indextextures(BTreeMap<usize, BTreeSet<u32>>), removing empty texture entries on overwrite/clear and removing only slots mapped toresourceonforget(L372). - Existing readers (
uploadsiteratinginner.textures.keys()andlogreadinginner.textures.len()) remain semantically unchanged, anddebug_assert!(matches!(old, Some(Seen::Texture(r)) if r == resource))(L97) guards against index drift in debug builds.
Local Verification
cargo xtask policy— pass (192 files ok).cargo clippy --locked -p victory-gpu --all-targets -- -D warnings(default and--all-features) — 0 warnings.cargo test --locked -p victory-gpu --features diagnostics --lib bindless::(RTX 5090 and WARP) — 5/5 passed, includingslot_tests::release_preserves_overwritten_and_unrelated_slotsandslot_tests::seeded_slot_updates_match_full_scan(200 seeds x 256 operations).
(Minor non-blocking nit: the PR title is currently truncated at preserve u....)
Looks good to merge.
Dukestar69
left a comment
There was a problem hiding this comment.
LGTM — verified on RTX 5090 (Windows / D3D12) against origin/main (63bcca4).
- Indexing bindless texture slots for targeted release cleanly avoids full scans while preserving remaining slot references.
cargo test -p victory-gpu --lib bindless:: -- --test-threads=1: all passed.cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.cargo xtask policy: 192 files ok.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Optimize runtime bindless descriptor bookkeeping with a reverse texture-to-slot index and unchanged-view fast path. Includes 200 synthetic regression traces across 10 workload families. Two independent reference checks over 23,680 operations each, zero disagreements. Synthetic release work reduced from 30,006 examined entries to 5,874 targeted removals (80.42% fewer). 204 files, no new dependencies or proprietary assets. Native Rust and GPU validation pending. No FPS improvement claimed. AI-assisted (ChatGPT).