fix(settings): bypass game TAA when an external upscaler is active #518

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

@⁠ZerefDragnee1l on GitHub · 2026-12-06 01:47 UTC · original
ZerefDragnee1l:fix/bypass-game-taa-with-external-upscaler → main · +87 −4 · 5 files · 1 commits · open

Bypasses the title's built-in temporal anti-aliasing (taa) pass (0) by default whenever an external PC upscaler (DLSS, FSR, or DittoSR) is active, avoiding blurry double-TAA/upscaling and checkerboard shadow/edge artifacts without preventing manual overrides.

Summary

  • Upscaler activity query (crates/larp-gpu/src/dlss.rs): Added dlss::external_active(), which returns true only when an external upscaler is prepared (NOT_USED unset) and the selected upscaler is not OWN.
  • Automatic default bypass with explicit override (crates/larp-hle/src/settings.rs):
    • When the user leaves taa at its default (None in options.ini / F10 menu), applying() and asking() supply 0.0 (taa = 0) to the title's settings block if dlss::external_active() is true and LARP_KEEP_GAME_TAA is unset.
    • Explicit taa choices (0, 1, 2 in options.ini or F10 menu) and LARP_KEEP_GAME_TAA=1 (true/on/yes) always take precedence.
    • Updated Opt::text / Opt::display_text so the F10 overlay and logs show default (0) when bypassed.
  • Live F10 toggling (crates/larp-hle/src/settings/menu.rs): When upscaler is switched live in F10 and taa is left at default, queues taa for the frame reset so 0 or the title's default (o.title) is updated immediately alongside the upscaler switch.
  • Documentation (crates/larp-game/src/settings.rs, docs/environment-variables.md): Documented the automatic bypass and LARP_KEEP_GAME_TAA opt-out.

Verification

  • git diff --check -> clean
  • cargo check -p larp -> exited 0
  • cargo test -p larp-hle --lib settings -> 4 passed; 0 failed; 1 ignored (look_picture ignored by upstream #[ignore] attribute), including taa_bypass_follows_external_upscaler_and_explicit_overrides.
**@⁠ZerefDragnee1l** on GitHub · 2026-12-06 01:47 UTC · [original](https://github.com/gamingwithhomie/larp/pull/518) `ZerefDragnee1l:fix/bypass-game-taa-with-external-upscaler` → `main` · +87 −4 · 5 files · 1 commits · open Bypasses the title's built-in temporal anti-aliasing (`taa`) pass (`0`) by default whenever an external PC upscaler (DLSS, FSR, or DittoSR) is active, avoiding blurry double-TAA/upscaling and checkerboard shadow/edge artifacts without preventing manual overrides. ### Summary - **Upscaler activity query (`crates/larp-gpu/src/dlss.rs`)**: Added `dlss::external_active()`, which returns `true` only when an external upscaler is prepared (`NOT_USED` unset) and the selected upscaler is not `OWN`. - **Automatic default bypass with explicit override (`crates/larp-hle/src/settings.rs`)**: - When the user leaves `taa` at its default (`None` in `options.ini` / F10 menu), `applying()` and `asking()` supply `0.0` (`taa = 0`) to the title's settings block if `dlss::external_active()` is `true` and `LARP_KEEP_GAME_TAA` is unset. - Explicit `taa` choices (`0`, `1`, `2` in `options.ini` or F10 menu) and `LARP_KEEP_GAME_TAA=1` (`true`/`on`/`yes`) always take precedence. - Updated `Opt::text` / `Opt::display_text` so the F10 overlay and logs show `default (0)` when bypassed. - **Live F10 toggling (`crates/larp-hle/src/settings/menu.rs`)**: When `upscaler` is switched live in F10 and `taa` is left at default, queues `taa` for the frame reset so `0` or the title's default (`o.title`) is updated immediately alongside the upscaler switch. - **Documentation (`crates/larp-game/src/settings.rs`, `docs/environment-variables.md`)**: Documented the automatic bypass and `LARP_KEEP_GAME_TAA` opt-out. ### Verification - `git diff --check` -> clean - `cargo check -p larp` -> exited 0 - `cargo test -p larp-hle --lib settings` -> `4 passed; 0 failed; 1 ignored` (`look_picture` ignored by upstream `#[ignore]` attribute), including `taa_bypass_follows_external_upscaler_and_explicit_overrides`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 01:54:00 +00:00
Author
Owner

@⁠ZerefDragnee1l on GitHub · 2026-12-06 01:49 UTC · original

@⁠Heliumrich

**@⁠ZerefDragnee1l** on GitHub · 2026-12-06 01:49 UTC · [original](https://github.com/gamingwithhomie/larp/pull/518#issuecomment-7449469032) @⁠Heliumrich
This pull request can be merged automatically.
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/518/head:github-bot/gh-518'
git switch 'github-bot/gh-518'

Merge

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