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

Closed
Lkxex wants to merge 2 commits from upstream-pr/1121 into main
Lkxex commented 2026-11-25 20:25:39 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Lkxex on 2026-11-25T20:25:39Z.


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

<!-- greyfinch-sync:fxceless/victory-fork:issue:6613069111 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1121). Originally posted by [Lkxex](https://github.com/Lkxex) on 2026-11-25T20:25:39Z. --- ## 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
upstream-sync closed this pull request 2026-11-25 21:05:49 +00:00
Lkxex commented 2026-11-25 21:05:54 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Lkxex on 2026-11-25T20:30:02Z.


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

<!-- greyfinch-sync:fxceless/victory-fork:comment:7173761710 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1121#issuecomment-7173761710). Originally posted by [Lkxex](https://github.com/Lkxex) on 2026-11-25T20:30:02Z. --- Closing: duplicate of #867 (perf(gpu): ... enable levels on demand). Reverting local change.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
fxceless/victory-fork!1118
No description provided.