Skip to content

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

Closed
Lkxex wants to merge 2 commits into
fxceless:mainfrom
Lkxex:kafir-work
Closed

Lkxex wants to merge 2 commits into
fxceless:mainfrom
Lkxex:kafir-work

Conversation

@Lkxex

@Lkxex Lkxex commented Nov 25, 2026

Copy link
Copy Markdown

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

…r/draw paths

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
@Lkxex

Lkxex commented Nov 25, 2026

Copy link
Copy Markdown
Author

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

@Lkxex Lkxex closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant