fix(builder): use upscaler choices from the installed version #2791

Merged
HumanBean merged 2 commits from HumanBean/Longshot:installed-version-upscalers into main 2026-11-29 06:01:34 +00:00
Owner

Summary

A shared profile could carry the last-played version's upscaler choices into a direct launch of another version and trigger a rebuild. The builder now reads the installed version's module choices for Play, info, and build --profile.

The version's version.json owns the module choices, including an explicit selection of no modules. Older version records use their default build's module list. An explicit build option selects the modules for that invocation. Standalone profiles still provide their module choices, and vendor license receipts stay with each profile.

Testing

Tested: The game-free CLI regression failed on main when the DLSS version inherited XeSS from the shared profile. It passes with the fix and covers alternating DLSS and FSR fixtures, both launch forms, an older version record, and an explicit selection of no modules. Locked builder and build-driver tests, focused Clippy, formatting, and the builder release-lookup source check passed.

Linux, GeForce RTX 3090. With one disposable profile and two seeded builds carrying different module selections, alternated between the launcher Play shortcut and opening the game directly. All six starts reached the game, reported the right modules and a current build, and kept their build record and game executable.

Still to test:

  • Windows, by hand. Alternate between two installed versions with different module choices and a shared profile, using Launcher Play and direct launch. Confirm both reuse the existing build and expose the version's vendor modules.
  • Full strict game-free suite in CI.

Measurements

The regression checks the selected modules and the fast check's build decision.

Before: main @ 9ce61633 After: this PR @ 6c477073
DLSS version with shared profile set to XeSS Uses XeSS Uses DLSS and reuses its build

Risks

The new builder reads the existing installed version record. Old launchers can still write the profile field for compatibility with older builders. Standalone builds without a version record continue to read and write their profile choices.

Checklist

Ready for review

  • One topic, on current main. The title is a Conventional Commit.
  • Tested on my own PC, in the game, as Testing says.
  • mise run test passes. The focused checks passed locally. The full suite is pending CI.
  • Measurements reports the regression before and after.
  • No game files, build output, or hand-edited generated files. third_party/ untouched.

When it applies

  • A game-free test fails on main and passes with the fix.
  • Docs updated.
  • AI assistance recorded with Assisted-by: trailers.
## Summary A shared profile could carry the last-played version's upscaler choices into a direct launch of another version and trigger a rebuild. The builder now reads the installed version's module choices for Play, `info`, and `build --profile`. The version's `version.json` owns the module choices, including an explicit selection of no modules. Older version records use their default build's module list. An explicit build option selects the modules for that invocation. Standalone profiles still provide their module choices, and vendor license receipts stay with each profile. ## Testing **Tested:** The game-free CLI regression failed on main when the DLSS version inherited XeSS from the shared profile. It passes with the fix and covers alternating DLSS and FSR fixtures, both launch forms, an older version record, and an explicit selection of no modules. Locked builder and build-driver tests, focused Clippy, formatting, and the builder release-lookup source check passed. Linux, GeForce RTX 3090. With one disposable profile and two seeded builds carrying different module selections, alternated between the launcher Play shortcut and opening the game directly. All six starts reached the game, reported the right modules and a current build, and kept their build record and game executable. **Still to test:** - Windows, by hand. Alternate between two installed versions with different module choices and a shared profile, using Launcher Play and direct launch. Confirm both reuse the existing build and expose the version's vendor modules. - Full strict game-free suite in CI. ## Measurements The regression checks the selected modules and the fast check's build decision. | | Before: main @ 9ce61633 | After: this PR @ 6c477073 | |---|---|---| | DLSS version with shared profile set to XeSS | Uses XeSS | Uses DLSS and reuses its build | ## Risks The new builder reads the existing installed version record. Old launchers can still write the profile field for compatibility with older builders. Standalone builds without a version record continue to read and write their profile choices. ## Checklist ### Ready for review - [x] One topic, on current `main`. The title is a Conventional Commit. - [x] Tested on my own PC, in the game, as Testing says. - [ ] `mise run test` passes. The focused checks passed locally. The full suite is pending CI. - [x] Measurements reports the regression before and after. - [x] No game files, build output, or hand-edited generated files. `third_party/` untouched. ### When it applies - [x] A game-free test fails on main and passes with the fix. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` trailers.
Assisted-by: Codex
fix(builder): use upscaler choices from the installed version
Some checks failed
CI / What the change needs (pull_request) Successful in 10s
CI / Third-party parts and guide screenshots (pull_request) Successful in 16s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 23s
PR description / Title and description (pull_request_target) Failing after 10s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 4m6s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m23s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m50s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m54s
CI / Website build and checks (pull_request) Successful in 1m23s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 17m38s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 39m44s
6c47707356
Assisted-by: Codex
Author
Owner

Tested in game: Linux, GeForce RTX 3090. Alternated two versions seeded with DLSS and FSR module choices under one profile. Launcher Play and direct launch both opened the game and reused the corresponding build on all six starts.

Tested in game: Linux, GeForce RTX 3090. Alternated two versions seeded with DLSS and FSR module choices under one profile. Launcher Play and direct launch both opened the game and reused the corresponding build on all six starts.
Member

Possibly related, for context:

  • PR #2762 feat(builder)!: build and play share one path, the launcher owns updates, and the fast check stops rebuilding — Introduced profile-based builder build/play behavior this refines
  • PR #2773 fix(builder): resolve launcher profiles and standalone folders by installation — Recent builder profile resolution change in the same launch path
Possibly related, for context: - PR #2762 feat(builder)!: build and play share one path, the launcher owns updates, and the fast check stops rebuilding — Introduced profile-based builder build/play behavior this refines - PR #2773 fix(builder): resolve launcher profiles and standalone folders by installation — Recent builder profile resolution change in the same launch path
HumanBean changed title from WIP: fix(builder): use upscaler choices from the installed version to fix(builder): use upscaler choices from the installed version 2026-11-29 06:01:27 +00:00
HumanBean deleted branch installed-version-upscalers 2026-11-29 06:01:35 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2791
No description provided.