gpu: make texture pool block size configurable #1966

Closed
github-bot wants to merge 1 commit from gh-pr/1966/head into gh-pr/1966/base
Owner

@⁠tharun-37 on GitHub · 2026-11-29 04:36 UTC · original
tharun-37:fix/pool-block-size-config → main · +101 −45 · 1 files · 1 commits · closed without merging

Addresses part of #1576 (pool block size configurability).

Adds \VICTORY_POOL_BLOCK_MB\ environment variable (16, 32, 64, 128, 256 MiB) to configure the texture pool block size. Default remains 64 MiB. The block size is read once at startup and cached.

The 64 MiB default works well for larger VRAM cards, but on 8 GB cards it causes internal fragmentation (hundreds of MiB to >2 GiB trapped in partially-filled 64 MiB heaps). Users can now set \VICTORY_POOL_BLOCK_MB=16\ or \32\ to reduce fragmentation on smaller VRAM cards.

Tests use \TEST_BLOCK\ constant (64 MiB) and \set_test_block_size()\ helper to ensure deterministic test behavior regardless of environment.

Validation: \cargo test -p victory-gpu --locked\ (589 tests pass); \cargo check --workspace --locked; \cargo xtask policy\ (pre-existing lower.rs size violation unrelated to this change).

AI-assisted (OpenCode).

**@⁠tharun-37** on GitHub · 2026-11-29 04:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1966) `tharun-37:fix/pool-block-size-config` → `main` · +101 −45 · 1 files · 1 commits · closed without merging Addresses part of #1576 (pool block size configurability). Adds \VICTORY_POOL_BLOCK_MB\ environment variable (16, 32, 64, 128, 256 MiB) to configure the texture pool block size. Default remains 64 MiB. The block size is read once at startup and cached. The 64 MiB default works well for larger VRAM cards, but on 8 GB cards it causes internal fragmentation (hundreds of MiB to >2 GiB trapped in partially-filled 64 MiB heaps). Users can now set \VICTORY_POOL_BLOCK_MB=16\ or \32\ to reduce fragmentation on smaller VRAM cards. Tests use \TEST_BLOCK\ constant (64 MiB) and \set_test_block_size()\ helper to ensure deterministic test behavior regardless of environment. Validation: \cargo test -p victory-gpu --locked\ (589 tests pass); \cargo check --workspace --locked\; \cargo xtask policy\ (pre-existing lower.rs size violation unrelated to this change). AI-assisted (OpenCode).
Add VICTORY_POOL_BLOCK_MB environment variable (16, 32, 64, 128, 256 MiB) to configure the texture pool block size. Default remains 64 MiB. The block size is read once at startup and cached. Tests use TEST_BLOCK constant (64 MiB) and set_test_block_size() helper.

Addresses part of #1576 (pool block size configurability).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 04:37:30 +00:00
github-bot closed this pull request 2026-11-29 04:37:30 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1966
No description provided.