gpu: enable levels-on-demand textures by default on capable adapters #1121

Closed
github-bot wants to merge 2 commits from gh-pr/1121/head into gh-pr/1121/base
Owner

@⁠Lkxex on GitHub · 2026-11-25 20:25 UTC · original
Lkxex:kafir-work → main · +11 −11 · 7 files · 2 commits · closed without merging

Summary

Enable levels-on-demand host copies of title textures by default on adapters
that support tiled resources tier 2. Previously this was gated behind
VICTORY_LEVELS_ON_DEMAND=1 even though the feature is implemented and
tested on the software adapter, and saves 2-3 GB of card memory on title
textures (see tiles.rs).

VICTORY_LEVELS_ON_DEMAND=0 still disables it.

Validation

  • cargo check -p victory-gpu passes.
  • cargo test -p victory-gpu passes (183 passed, 5 ignored), including the
    ignored levels_on_demand_on_the_card test on the software adapter.

Limitations

  • No real-GPU validation; behavior on tier-2 adapters other than the tested
    one is unverified. Opt-out remains available.

Assisted By NetherySiloX

**@⁠Lkxex** on GitHub · 2026-11-25 20:25 UTC · [original](https://github.com/fxceless/victory-fork/pull/1121) `Lkxex:kafir-work` → `main` · +11 −11 · 7 files · 2 commits · closed without merging ## Summary Enable levels-on-demand host copies of title textures by default on adapters that support tiled resources tier 2. Previously this was gated behind `VICTORY_LEVELS_ON_DEMAND=1` even though the feature is implemented and tested on the software adapter, and saves 2-3 GB of card memory on title textures (see `tiles.rs`). `VICTORY_LEVELS_ON_DEMAND=0` still disables it. ## Validation - `cargo check -p victory-gpu` passes. - `cargo test -p victory-gpu` passes (183 passed, 5 ignored), including the ignored `levels_on_demand_on_the_card` test on the software adapter. ## Limitations - No real-GPU validation; behavior on tier-2 adapters other than the tested one is unverified. Opt-out remains available. Assisted By NetherySiloX
Apply clippy suggestions in victory-gpu: use HashMap::entry instead of contains_key + insert in fpsbox, collapse nested if in pipeline::library, use is_multiple_of in queue/shadow, sort_unstable_by_key in draw, and allow dead_code on the unused placed_filler_twins diagnostic.

No behavior change. cargo check and victory-gpu tests pass (one pre-existing flaky GPU indirect test remains environment-dependent).

Assisted By NetherySiloX
Levels on demand (`tiles`) was gated behind VICTORY_LEVELS_ON_DEMAND=1 even
though it is implemented, tested on the software adapter, and saves 2-3 GB of
card memory on title textures. Enable it whenever the adapter reports tiled
resources tier 2, and let VICTORY_LEVELS_ON_DEMAND=0 opt out.

Assisted By NetherySiloX
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:57:51 +00:00
github-bot closed this pull request 2026-11-26 03:57:51 +00:00
Author
Owner

@⁠Lkxex on GitHub · 2026-11-25 20:30 UTC · original

Closing: duplicate of #867 (perf(gpu): ... enable levels on demand). Reverting local change.

**@⁠Lkxex** on GitHub · 2026-11-25 20:30 UTC · [original](https://github.com/fxceless/victory-fork/pull/1121#issuecomment-7173761710) Closing: duplicate of #867 (perf(gpu): ... enable levels on demand). Reverting local change.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.