feat(menu): an Anti-aliasing row, the game's own or Off #3273
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3273
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:feat/anti-aliasing-row"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Players find no anti-aliasing setting, yet the game runs a post-process anti-aliasing pass of its own after its tone map, with the Upscaler at Game's own, Off, MAKO, FSR, XeSS and GSR 2 alike, and nothing shows or turns it.
A new Anti-aliasing row on the Graphics tab: Game's own (default, nothing changes) or Off (the pass is left out, at once, by the same cleared-weights way #3221 uses under DLSS). Its help points to the Upscaler row for stronger anti-aliasing. Under a running DLSS or DLAA it says both choices look the same. An upscaler's own smoothing is not affected.
No SMAA or FXAA of our own is added: the game's pass is already of that kind.
Also corrects #3221's docs and comment, which said FSR 3.1 was less steady from frame to frame without the pass. That figure does not hold up: two runs behaving identically differed several-fold on the same measure.
Related: #2346 (asks for SMAA; this does not add it).
Testing
Tested: Linux (CachyOS), RTX 3090, Market, 2560x1440, Render resolution 100%, Upscaler Off and FSR 3.1: the row switched Game's own, Off, Game's own in one run: Off is visibly stair-stepped and switching back restores it; the log says
the game's own anti-aliasing is left out (the Anti-aliasing row is Off). The row's final texts read on screen in English; earlier wording of the same length also in German, French and Russian (it fits).tests/test_dlss_game_aa.pyfails on the test commit and passes on the head.vk_draw.cppalso passes an llvm-mingw syntax-only compile (no Windows link or run). The picture runs were before the review's text corrections; the renderer code is unchanged since.mise run teston a tree of this PR, its two sibling PRs andmain@4e16bf06(before the review's text corrections; the text and row tests re-run on the heads): 923 passed, 11 failed, 13 skipped; the same 11 fail onmainthere:test_dlssg,test_input_background,test_lifter,test_present_acquire_ahead,test_present_held_image,test_present_image_free,test_present_semaphores,test_sandbox_windows,test_settings_area_keys,test_vk_draw_overhead_lean,test_walk_key.The menu's own tests do not compile on
main(4e16bf06tobb5a5682:game/crates/modtool/src/import.rs:396, a test from #3169 callspatches::collectwithout the argument #3165 added). With that call patched for the run only, the menu's failures here aremain's own (PLACED the graphics tab, the settings table's order,Custom fog sliders).test_i18n_completefails on currentmainfor Fill title screen's missing translations, not for this row.Still to test:
Measurements
Verdict: Off does what it says, live; the default changes nothing.
Mean edge contrast of two stills (3x3 Laplacian), same spot, one run each; stills only, and Navi moves in view.
f32a7134(the row at Game's own)27971a18, OffThe "Before" column is the row at Game's own in the same run, which runs
main's path. Both arms ran in one build, somain's later commits do not move the comparison. Frame time was not measured.Risks
Off is opt-in and gives harder edges. With an upscaler, how it holds up in motion is not judged. A saved Off stays after an upscaler change. Translations are not reviewed by native speakers. Reverting is enough.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here.tests/that reads changed source is updated, not weakened.mainand here, for a change that shows on screen.tests/test_menu_ini_keys.py.schema-gen), not edited by hand.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e16e9JsGLrugow9vJQ
Tested in game: Linux (CachyOS), RTX 3090, Market, 2560x1440: the row switched Game's own, Off, Game's own in one run with the Upscaler Off and FSR 3.1; Off is visibly stair-stepped and switching back restores it.
Linux, RTX 3090. The Graphics tab, then the row Off.
With DLSS chosen:
Market, 2560x1440, Upscaler Off, one spot enlarged 3x: left the row at Game's own, right Off (Navi flies through). 
Possibly related, for context:
WIP: feat(menu): an Anti-aliasing row, the game's own or Offto feat(menu): an Anti-aliasing row, the game's own or Off@review
@Beanstalk Set the Graphics tab's Anti-aliasing row to Off and compare with Game's own, with the Upscaler Off and with AMD FSR 3.1 at Render resolution 100%, on Windows AMD, Windows Intel and a Steam Deck: Off should give harder edges, switching back should restore them, and nothing else in the picture should change.
Beanstalk test farm · ⛔ can't be tested as asked
Commit
27971a1· approved by HumanBean (untrusted) · dashboardNot run: the farm can't test this as asked, so nothing is built or run:
⚠️ Note: The upscaler axis covers Off and FSR 3.1, but both sides use the default Game's own anti-aliasing.
What it could test instead: The alternative plan compares the default anti-aliasing picture with main in the Market, using Upscaler Off and FSR 3.1 at 100% render resolution. It takes three starts per side on Windows AMD, Windows Intel and Steam Deck, with still-image comparisons after each teleport. A crash or a screenshot difference above 0.2 fails the alternative plan; it does not test the requested Off setting.
A member of
BigBeanscan comment@Beanstalk <new words>to ask for something else, or@Beanstalk test it anywayto run the plan regardless.Recommendation: Approve. The code is ready: only testing is left. The row works in the reported NVIDIA Linux run, and its default retains the existing behavior. The new rendering path still needs the requested hardware and motion coverage, and its frame-time cost has not been measured. Recommend approval; not approved on the forge.
Adds a saved Graphics setting to leave out the game's anti-aliasing pass, while retaining the existing default. Players can choose harder edges; the effect on motion and the frame-time cost across supported systems remain unmeasured.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_draw.cpp:13084: The new Off path needs the remaining hardware and motion runs before merge. (more on the line) Do: Run the requested Off-to-Game's-own comparison on AMD Windows and Linux, Intel and Steam Deck, and check FSR 4 and XeSS in motion, including switching back.gpu/vk/vk_draw.cpp:13084: The frame-time effect of the new option and the default path has not been measured. (more on the line) Do: Compare the base and this head at the default, then Game's own and Off, using repeated interleaved runs in a representative scene; report average FPS, 1% lows and frame times.Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Yes for the visible feature on the tested RTX 3090 Linux setup: the author reports harder edges with Upscaler Off and FSR 3.1, and restoration when switching back. One still-image comparison reports edge contrast of 10.08 to 11.69 with Upscaler Off and 9.35 to 10.26 with FSR 3.1; moving content and single runs limit those numbers. Frame time was not measured.
Other systems: The change reaches the weights dispatch with every upscaler, including DLAA before bloom, and can affect all GPU vendors and operating systems when Off is selected. NVIDIA Linux was tested with Upscaler Off and FSR 3.1; AMD, Intel, Steam Deck, FSR 4, XeSS and motion remain untested. The settings snapshot is atomically published and retained for the run.
Switches: No environment switches added, changed or removed. The new Anti-aliasing setting defaults to Game's own, preserving the previous behavior; Off takes precedence over RX_VK_DLSS_GAME_AA=1.
Reviewed:
27971a18feagainstbb5a5682ce: Read the repository instructions, contributing rules, standards, PR template, commit log, diff, renderer settings publication and the complete changed anti-aliasing test. Inspected the changed menu declaration, ABI additions and renderer function in context; translations and generated ABI changes were skimmed. The large vk_draw.cpp, graphics manifest and generated ABI files were not read in full. docs/review-checklist.md was absent.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run, as requested. The PR reports an in-game NVIDIA Linux run and game-free checks; CI is still running.
Overlaps and merge order: Not checked; network access is unavailable.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -13080,3 +13082,3 @@if (p.key != 0x685adb41edc19de7ull) return false;static const bool kept = env_on("RX_VK_DLSS_GAME_AA");if (kept || !temporal_dlss_drawing()) return false;const bool off = settings_now().game_aa != 0; // (the Anti-aliasing row, at once)L1 (should fix): The new Off path needs the remaining hardware and motion runs before merge.
When: Off replaces the weights dispatch on AMD and Intel GPUs and Steam Deck as well as NVIDIA, and supplies a different image to temporal upscalers. Only NVIDIA Linux with Upscaler Off and FSR 3.1 has been reported, so the picture and transitions on the other paths are unknown.
Do: Run the requested Off-to-Game's-own comparison on AMD Windows and Linux, Intel and Steam Deck, and check FSR 4 and XeSS in motion, including switching back.
L2 (should fix): The frame-time effect of the new option and the default path has not been measured.
When: Every matching weights dispatch now reads the settings snapshot, and Off replaces the dispatch with barriers and a clear. The still-image measurements do not show whether either choice changes frame pacing or performance.
Do: Compare the base and this head at the default, then Game's own and Off, using repeated interleaved runs in a representative scene; report average FPS, 1% lows and frame times.
@fix
Recommendation: Approve. The code is ready: only testing is left. The row works in the reported NVIDIA test, but the remaining hardware and motion runs and the frame-time comparison are still outstanding. Recommend approval; not approved on the forge.
What
@fixchangedI changed this pull request: the new head is 24a5aa4abef1. I rebased it onto
main(450dbdaeb3).Nothing was built or run: the checks run again on the new head.
Adds a live Anti-aliasing choice that lets players leave out the game’s smoothing pass; the default retains the existing behavior. Off gives harder edges and may affect motion quality and frame time.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_draw.cpp:13084: The new Off path needs the remaining hardware and motion runs before merge. When: Off replaces the weights dispatch on AMD and Intel GPUs and Steam Deck as well as NVIDIA, and supplies a different image to temporal upscalers. Only NVIDIA Linux with Upscaler Off and FSR 3.1 has been reported, so the picture and transitions on the other paths are unknown. Do: Run the requested Off-to-Game's-own comparison on AMD Windows and Linux, Intel and Steam Deck, and check FSR 4 and XeSS in motion, including switching back.gpu/vk/vk_draw.cpp:13084: The frame-time effect of the new option and the default path has not been measured. When: Every matching weights dispatch now reads the settings snapshot, and Off replaces the dispatch with barriers and a clear. The still-image measurements do not show whether either choice changes frame pacing or performance. Do: Compare the base and this head at the default, then Game's own and Off, using repeated interleaved runs in a representative scene; report average FPS, 1% lows and frame times.Checks: they run again on this head; a failure shows on the pull request.
More: does it help, other systems, switches, what was read
Does it help: Yes for the visible option in the reported Linux RTX 3090 run: switching Off produced harder edges and switching back restored smoothing with Upscaler Off and FSR 3.1. Single still comparisons reported edge contrast increases of 16% and 10%, but do not establish motion quality or performance.
Other systems: The renderer path can affect Windows and Linux, AMD and Intel GPUs, Steam Deck, and all upscalers. The reported run covers Linux on an RTX 3090 with Upscaler Off and FSR 3.1; the remaining hardware and motion coverage is outstanding.
Switches: Adds the saved Anti-aliasing setting, default Game’s own; this preserves the existing default path. Off takes precedence over RX_VK_DLSS_GAME_AA, whose default and behavior otherwise remain unchanged.
Reviewed: 24a5aa4abef1 against
450dbdaeb3: Read the repository rules and PR template, the rebased PR diff and the relevant setting, renderer and test changes; skimmed generated ABI changes, translations and recorded results. Large changed files were not read in full.; nothing run (a code review).Checked and fine:
Testing: No commands that execute project code or tests were run. The author reports an in-game Linux RTX 3090 run and game-free test results; CI has not run on this head.
Overlaps and merge order: None identified in the supplied material.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.