Skip to content

Video: Add texture sharpness (LOD bias) option - #564

Closed
jfpaardoo wants to merge 1 commit into
Revivedx:testfrom
jfpaardoo:feat/texture-lod-bias
Closed

jfpaardoo wants to merge 1 commit into
Revivedx:testfrom
jfpaardoo:feat/texture-lod-bias

Conversation

@jfpaardoo

Copy link
Copy Markdown

What this changes

Adds a Texture sharpness choice under Video > Advanced Options (\Default\ / \Sharp\ / \Sharper), allowing players to pull forward mipmap levels on 3D textures for increased clarity on ground, paths, rock faces, and distant geometry.

  • Background: The original console game is designed around 720p/900p rendering with aggressive mipmap transitions, which can appear soft or blurry when running at 1080p, 1440p, 4K, or with high anisotropic filtering.
  • Implementation:
    • Evaluates user-level LOD bias in \�k_sampler()\ on mipmapped textures (\TEX_LOD_SHARP: -0.5f, \TEX_LOD_SHARPER: -1.0f).
    • Combines safely with TAA jitter bias while preserving caching through \�ackend_bias\ and \�ackend_bias_lod.
    • Clamped against device \limits.maxSamplerLodBias\ in Vulkan sampler creation.
    • Leaves UI, single-mip, and shadow depth comparison samplers untouched.
  • Settings: Saved in \savagewind.ini\ as \ exture_lod_bias = default | sharp | sharper.
  • Translations: Added strings to all 13 supported languages.

How it was tested

  • Verified persistence and toggling across simulated boots with \make test-pc-controls.
  • Ran full runtime compilation (\make runtime-objs) without errors or warnings.
  • Ran \python tools/i18n_check.py: 0 missing strings across all 13 languages.
  • Verified clean whitespace with \git diff --check.

Copilot AI balanced review requested due to automatic review settings November 7, 2026 22:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Revivedx added a commit that referenced this pull request Nov 8, 2026
…th, texture sharpness, HUD at edges

Fixes:
- The program and pipeline tables grow at half load: a full table made the render thread loop forever after about
  three hours of play (#565).
- Writable G-buffer aliases can take the feedback path, and duplicate attachments can be attached once, on RADV wall
  corruption. Both are opt-in, by environment switch only, for testing on the affected GPUs (#579).
- The Settings page background meets the tab bar's line (#578).

New:
- PrintScreen saves a screenshot during play (#562).
- Controls > Vibration strength, 10% to 100% (#563).
- Video > Advanced options > Texture sharpness: Default, Sharp, Sharper (#564).
- Video > HUD at edges, for screens taller than 16:9 (#558).

Tested by playing on Windows and with a hidden start, warp and teleport run: no crash and no errors in the log. Not
tested on RADV, nor the HUD at edges on a screen taller than 16:9.

Co-authored-by: amekkaoui <47280181+amekkaoui@users.noreply.github.com>
Co-authored-by: Daniel Barrios <ing.dbarrios@gmail.com>
Co-authored-by: ethanblazkowicz <misscalmm@icloud.com>
Co-authored-by: jfpaardoo <juaparpar@alum.us.es>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Revivedx

Revivedx commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Thanks, this is in test as 94acc5b, under Video > Advanced options. Closing since test gets one clean commit per batch; you are credited as co-author.

@Revivedx Revivedx closed this Nov 8, 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.

3 participants