GPU: keep the placed-filler bookkeeping out of default builds (#34) #35
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/TaynanGT--Vice-Tay!35
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-35"
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?
@welisonzika14-jpg on GitHub · 2026-11-26 16:08 UTC · original
welisonzika14-jpg:fix/placed-raw-diagnostics→main· +162 −1 · 4 files · 2 commits · merged 2026-11-26 19:29 UTCFixes the growth reported in #34.
Problem
PLACED_RAW(crates/victory-gpu/src/resource.rs) keeps every (address, description with filler words 1 and 13) pair for the whole run. On each new pair it scans all variants of that address, whilePLACED_TEXTURESis locked. Its only job is thePLACED_TWINScounter, which only diagnostics builds read. Measured onfab5286with a synthetic load test: 1,000,000 asks with different filler = +1,000,000 entries and about +100 MB private memory; 8,000 variants at one address take about 2 s.Change
--features diagnostics, and there it starts over at 16,384 entries.#[ignore]load tests (cargo test -p victory-gpu --lib -- --ignored --nocapture):descriptor::tests::placed_view_shapes_loadandresource::tests::placed_filler_bookkeeping_load. They print table sizes and the process's private memory (loadprobe.rs).Tested (RTX 5070, driver 621.24, Windows 11, Rust 1.98.1)
PLACED_RAWafter 1M asksmainfab5286cargo test -p victory-gpu --lib --locked: 347 passed, 0 failed, 38 ignored (same asfab5286).cargo clippy -p victory-gpu --all-targets --locked -- -D warningsand the same with--all-features: clean.Limits
Synthetic, no game files. It does not reproduce the 70-minute session, and I don't know how many filler pairs a real session makes, so this may be only a small part of the 0.4-0.5 GB/min.
Written with AI help (Claude/Kiro); the numbers are from runs on my machine.
@welisonzika14-jpg on GitHub · 2026-11-26 16:51 UTC · original
Related work, for reference: another fork merged a fix for the same growth today, HumanlyDev/HUMAN#7 (merged 2026-11-26 16:42 UTC). It also gates
PLACED_RAW/PLACED_TWINSbehindfeature = "diagnostics", so two forks reached the same fix on their own.How the two differ:
diagnostics(u64, [u32; 14])(u64, u64)#[ignore]tests indescriptor.rsandresource.rs, numbers in the PR bodyIf you prefer the compact key from HUMAN#7, I can switch to it here. That would cut each entry from 64 bytes to 16, at the cost of a small chance of hash collisions in a diagnostics-only counter.
Written with AI help (Claude/Kiro).
@efsebayern on GitHub · 2026-11-26 17:26 UTC · original
I tested #35 on an i7-13700K / RTX 4080 SUPER 16 GB (driver 610.88) / 32 GB RAM, Windows 11 Pro build 26200. Both diag builds used the windowed Series S preset and fresh copies of the same save and warmed shader/pipeline cache. The timed window began after three consecutive log samples with at least 1,000 draws/frame.
fab5286ceda200My runner stopped all three runs after three checks with under 1 GiB of Windows commit headroom. These short and unequal windows do not establish a gameplay performance or memory effect. The filler-repeat counter stayed at zero throughout each run. That counter measures repeats, so it does not establish the size of
PLACED_RAW.I could reproduce the synthetic result independently. With one million filler variants on
ceda200, the default build added 0 entries and 0 KiB of private memory. The diagnostics build added 576 entries and 524 KiB in that phase. Both tests passed.@TaynanGT on GitHub · 2026-11-26 19:18 UTC · original
The default build skips the filler bookkeeping, and diagnostics stays capped at 16,384 variants. I queued CI for this revision. @welisonzika14-jpg, the exact key makes sense for the diagnostic count. @efsebayern, the synthetic result independently verifies the bound. The gameplay windows were of different lengths, so I am keeping them out of the performance comparison.