Resource: add relative-mip VICTORY_TEXTURE_QUALITY (full|high|medium|half|low) keeping screen art whole #6

Open
github-bot wants to merge 1 commit from github-bot/gh-6 into main AGit
Owner

@⁠adib-cyber007 on GitHub · 2026-12-02 08:40 UTC · original
adib-cyber007:pr/6-texture-quality-4gb → main · +490 −8 · 3 files · 1 commits · open

Port of trustno1-coder/VIctory-NVIDIA (8be4e038, c6355687, a4e55614, 0ca3bd2e, GPL-3.0).

Why

VICTORY_TEXTURE_MAX_DIM=512 caps textures relative to mip level 0, so streamed textures whose view already starts at a mip ≤512 px get no further reduction. VICTORY_TEXTURE_QUALITY cuts mips relative to the level the view starts at:

  • high: drop 1 mip on ≥2048 px
  • medium: drop 1 on ≥1024 px, 2 on ≥4096 px
  • half: drop 1 on ≥256 px (~75% VRAM saved on world textures)
  • low: drop 1 on ≥64 px, 2 on ≥512 px (~93.75% VRAM saved on ≥512 px)

Screen art, loading illustrations, menus, HUD, and map art (non-power-of-two sides or uncompressed 8-bit RGBA8/BGRA8 formats) are always kept at full resolution. want_level and placed_bytes_from respect the target cut, and a 600-frame census logs reduced copies and MB saved.

Toggle

  • Defaults to full (existing VICTORY_TEXTURE_MAX_DIM=512 behavior is completely unchanged unless set).
  • Test on 4 GB VRAM with VICTORY_TEXTURE_QUALITY=half or VICTORY_TEXTURE_QUALITY=low.

Verification

  • All 5 unit tests in resource::quality::tests (parsing, thresholds, relative-to-view cuts, screen-art protection, saved-byte math) and default + --features diagnostics builds passed with zero new warnings.
  • Live VRAM & visual quality need testing in-game.
**@⁠adib-cyber007** on GitHub · 2026-12-02 08:40 UTC · [original](https://github.com/ImTaneax/VIctory-RTX3050-4gb/pull/6) `adib-cyber007:pr/6-texture-quality-4gb` → `main` · +490 −8 · 3 files · 1 commits · open Port of `trustno1-coder/VIctory-NVIDIA` (`8be4e038`, `c6355687`, `a4e55614`, `0ca3bd2e`, GPL-3.0). ### Why `VICTORY_TEXTURE_MAX_DIM=512` caps textures relative to mip level 0, so streamed textures whose view already starts at a mip ≤512 px get no further reduction. `VICTORY_TEXTURE_QUALITY` cuts mips **relative to the level the view starts at**: - `high`: drop 1 mip on ≥2048 px - `medium`: drop 1 on ≥1024 px, 2 on ≥4096 px - `half`: drop 1 on ≥256 px (~75% VRAM saved on world textures) - `low`: drop 1 on ≥64 px, 2 on ≥512 px (~93.75% VRAM saved on ≥512 px) Screen art, loading illustrations, menus, HUD, and map art (non-power-of-two sides or uncompressed 8-bit RGBA8/BGRA8 formats) are always kept at full resolution. `want_level` and `placed_bytes_from` respect the target cut, and a 600-frame census logs reduced copies and MB saved. ### Toggle - Defaults to `full` (existing `VICTORY_TEXTURE_MAX_DIM=512` behavior is completely unchanged unless set). - Test on 4 GB VRAM with `VICTORY_TEXTURE_QUALITY=half` or `VICTORY_TEXTURE_QUALITY=low`. ### Verification - All 5 unit tests in `resource::quality::tests` (parsing, thresholds, relative-to-view cuts, screen-art protection, saved-byte math) and default + `--features diagnostics` builds passed with zero new warnings. - Live VRAM & visual quality need testing in-game.
Ported from trustno1-coder/VIctory-NVIDIA (8be4e038, c6355687, a4e55614, 0ca3bd2e, GPL-3.0). Evaluates mip reduction relative to the level a streamed view starts at (so streamed world textures already starting past level 0 are still cut by 75% in half mode or up to 93.75% in low mode) while keeping non-power-of-two and uncompressed 8-bit RGBA8/BGRA8 screen art, UI, HUD, and menus at full resolution. Leaves existing VICTORY_TEXTURE_MAX_DIM untouched when unset (full), updates placed_bytes_from and want_level, and logs a 600-frame census of reduced textures and MB saved.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 08:41:49 +00:00
github-bot changed title from resource: add relative-mip VICTORY_TEXTURE_QUALITY (full|high|medium|… to Resource: add relative-mip VICTORY_TEXTURE_QUALITY (full|high|medium|half|low) keeping screen art whole 2026-12-02 10:22:06 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/6/head:github-bot/gh-6'
git switch 'github-bot/gh-6'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-6'
git switch 'github-bot/gh-6'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-6'
git switch 'github-bot/gh-6'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-6'
git switch 'main'
git merge --squash 'github-bot/gh-6'
git switch 'main'
git merge --ff-only 'github-bot/gh-6'
git switch 'main'
git merge 'github-bot/gh-6'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.