Pool: what the texture blocks hold, in the log every five seconds (VICTORY_POOL_STATS=1, off by default) #79
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/trustno1-coder--VIctory-NVIDIA!79
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-79"
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?
@1mosce on GitHub · 2026-11-27 17:08 UTC · original
1mosce:pool-stats→main· +186 −3 · 1 files · 1 commits · openWhat
VICTORY_POOL_STATS=1(off by default) writes one line about the texture pool every five seconds: the blocks and how full they are (in quarters), the bytes free now and in how many ranges, the largest of those, the pieces that rest, the live textures by the size of their piece, and what the small ones would hold at multiples of 4 KiB (VICTORY_POOL_SMALL).Nothing about how pieces are cut changes. Without the switch a texture costs two counters when it is made and when it goes; with it, one more
GetResourceAllocationInfofor each texture made.Why
the texture queue's roomsays how much of the blocks is free, not how it lies or why. On an 8 GiB card that was the difference between "the pool is fragmented" and "small textures take 64 KiB each", which need different fixes.What it showed
RTX 4070 Laptop (8 GiB), Ryzen 9 8945HS, 32 GB, Series S profile, DLSS Balanced, no frame generation.
Five minutes into a run with
VICTORY_POOL_SMALL=0(the launcher's setting):With
VICTORY_POOL_SMALL=1the next run, six minutes: 20,000 to 38,000 live textures in 40 to 45 blocks (2,560 to 2,880 MB), 2,024 MB held on average, the card 560 to 780 MB under its budget, 2 % of the queue's slots held back for room where the run before had 9 %, and no device loss. That is one run on one NVIDIA card; I am not proposing to change the launcher's default on it.Tests
the_census_counts_what_is_free_resting_and_how_full_blocks_are,textures_are_counted_by_their_piece.cargo test -p victory-gpu --lib pool::passes (9 tests); clippy has no warning inpool.rs, plain and withdiagnostics.CI: on
main(d12eb1b)cargo clippy --workspace --all-targets -- -D warningsstops atcrates/victory-formats/src/texture.rs:1346(clippy::precedence), and two tests fail on this machine with and without this change:indirect::tests::host_list_budget_starts_empty_at_each_submissionandindirect::tests::warp_batch_charges_every_execution.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.