Skip to content

fix(upscaling): fix FSR regression from 1.4.8#2380

Merged
SkrubbySkrubInAShrub merged 1 commit into
community-shaders:devfrom
Almoped:dev
May 21, 2026
Merged

fix(upscaling): fix FSR regression from 1.4.8#2380
SkrubbySkrubInAShrub merged 1 commit into
community-shaders:devfrom
Almoped:dev

Conversation

@Almoped
Copy link
Copy Markdown
Contributor

@Almoped Almoped commented May 20, 2026

Revert change from refactor. Tested on 1.4.8 and git-dev.

Fixes #2213

Summary by CodeRabbit

  • Bug Fixes
    • Adjusted mipmap bias calculation for temporal upscaling: bias now matches the render vs. screen size ratio, with the additional -1.0 offset applied only when using DLSS. Improves visual consistency across non-TAA upscaling methods.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 20, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 20bcd4bb-3155-4688-882d-aef581ed863f

📥 Commits

Reviewing files that changed from the base of the PR and between 1e3fc89 and 28a8199.

📒 Files selected for processing (1)
  • src/State.cpp

📝 Walkthrough

Walkthrough

State::UpdateSharedData modifies MipBias in the temporal upscaling branch: it now computes MipBias = log2(renderSize.x / screenSize.x) for non-TAA methods and subtracts 1.0f only when the upscale method is DLSS.

Changes

MipBias Temporal Upscaling Adjustment

Layer / File(s) Summary
MipBias calculation for temporal upscaling
src/State.cpp
When temporal upscaling is enabled and the upscale method is not TAA, MipBias is computed from the render-to-screen ratio; the -1.0f offset now applies conditionally only for DLSS upscaling, replacing the previous unconditional offset.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Suggested reviewers

  • alandtse
  • doodlum
  • jiayev

Poem

🐰 A tiny bias, shifted with care,
DLSS alone gets the extra flair,
Logs of sizes tell the tale,
Other methods follow the same trail,
Pixels stay sharp — a rabbit's cheer!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title directly and specifically identifies the main change: fixing an FSR (FidelityFX Super Resolution) regression introduced in version 1.4.8, which aligns with the pull request objectives and the code change that modifies MipBias calculation for non-TAA upscaling methods.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 OpenGrep (1.21.0)

OpenGrep fatal error (exit code 2): [00.12][ERROR]: Error: exception Unix_error: No such file or directory stat src/State.cpp
Raised by primitive operation at UTmp.replace_named_pipe_by_regular_file_if_needed in file "libs/commons/UTmp.ml", line 145, characters 8-27
Called from Scan_CLI.replace_target_roots_by_regular_files_where_needed.(fun) in file "src/osemgrep/cli_scan/Scan_CLI.ml", lines 1086-1087, characters 19-65
Called from List_.fast_map in file "libs/commons/List_.ml", line 81, characters 17-20
Called from Scan_CLI.repla


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

No actionable suggestions for changed features.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

✅ A pre-release build is available for this PR:
Download

@jiayev jiayev changed the title Fix FSR regression from 1.4.8 and close bug #2213 fix(upscaling): fix FSR regression from 1.4.8 and close bug #2213 May 20, 2026
@SkrubbySkrubInAShrub SkrubbySkrubInAShrub changed the title fix(upscaling): fix FSR regression from 1.4.8 and close bug #2213 fix(upscaling): fix FSR regression from 1.4.8 May 21, 2026
@SkrubbySkrubInAShrub SkrubbySkrubInAShrub merged commit b559a57 into community-shaders:dev May 21, 2026
6 of 7 checks passed
IgorAlanAlbuquerque pushed a commit to IgorAlanAlbuquerque/skyrim-community-shaders that referenced this pull request May 29, 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.

Performance regression at lower upscaling quality with FSR 3.

2 participants