feat(devtools): packs build with the upscalers the environment names (FSR 4, AMD's and Intel's runtimes) #2402

Merged
HumanBean merged 1 commit from HumanBean/Longshot:feat/packs-upscalers into main 2026-11-23 19:57:11 +00:00
Owner

Summary

The Test Farm builds main and a PR through dev.py packs, which ran make_game.py with no upscaler option. So a farm build never had AMD FSR 4, and never had AMD's FSR runtime or Intel's XeSS library, even on a PC whose tester accepted the vendor's license. That's why the farm says it "can't test" FSR 4 or DLSS PRs (#2400, #2369). Beanstalk is adding a switch per upscaler to its tester app, as the Launcher has, and needs a way to build with them.

upscaler_args (scripts/devtools/packs.py) turns the environment into make_game.py's own options, the same for a base and its packs:

  • LONGSHOT_FSR=1 → --fsr. make_game.py clears the variable otherwise. A renderer-only pack runs build.py, which reads it as it is.
  • LONGSHOT_FFX_SDK (with LONGSHOT_FSR=1) and LONGSHOT_XESS_SDK → --fetch-fsr-runtime --accept-amd-license and --fetch-xess-runtime --accept-intel-license. These are folders scripts/fetch.py already filled, under the license accepted when they were fetched. Every file is there and checked, so nothing is downloaded, which matters in the farm's offline sandbox.
  • NVIDIA DLSS needs nothing new: run() already passes LONGSHOT_NGX_SDK to make_game.py and build.py.

Read first: upscaler_args and make_game in scripts/devtools/packs.py. Nothing changes for a player's build or for dev.py packs without those variables.

Testing

Tested: Linux (CachyOS). tests/test_dev_packs.py's new test_upscaler_args passes: each variable to its options, off when unset or 0, and each option checked to be one make_game.py takes. mise run test: 854 passed, 104 failed, the same 104 as on main at 79d192c on this PC, among them test_dev_packs.py's own "a game patch shows in the objects" (nx2/oot_patches.py).

Still to test:

  • Linux and Windows, AMD: a Test Farm build with LONGSHOT_FSR=1 (and on Windows LONGSHOT_FFX_SDK) once Beanstalk's switch is in, expecting FSR 4 in the Upscaler menu and in the build's log (Beanstalk, after its change)

Measurements

Nothing to measure: a developer tool's options, with no effect without the variables.

Risks

dev.py packs with LONGSHOT_FSR=1 or one of the SDK folders already set in a developer's shell now builds with them, as make_game.py alone never did for packs. Unset them to build without. Nothing changes for players.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary The Test Farm builds main and a PR through `dev.py packs`, which ran `make_game.py` with no upscaler option. So a farm build never had AMD FSR 4, and never had AMD's FSR runtime or Intel's XeSS library, even on a PC whose tester accepted the vendor's license. That's why the farm says it "can't test" FSR 4 or DLSS PRs (#2400, #2369). Beanstalk is adding a switch per upscaler to its tester app, as the Launcher has, and needs a way to build with them. `upscaler_args` (`scripts/devtools/packs.py`) turns the environment into `make_game.py`'s own options, the same for a base and its packs: - `LONGSHOT_FSR=1` → `--fsr`. `make_game.py` clears the variable otherwise. A renderer-only pack runs `build.py`, which reads it as it is. - `LONGSHOT_FFX_SDK` (with `LONGSHOT_FSR=1`) and `LONGSHOT_XESS_SDK` → `--fetch-fsr-runtime --accept-amd-license` and `--fetch-xess-runtime --accept-intel-license`. These are folders `scripts/fetch.py` already filled, under the license accepted when they were fetched. Every file is there and checked, so nothing is downloaded, which matters in the farm's offline sandbox. - NVIDIA DLSS needs nothing new: `run()` already passes `LONGSHOT_NGX_SDK` to `make_game.py` and `build.py`. Read first: `upscaler_args` and `make_game` in `scripts/devtools/packs.py`. Nothing changes for a player's build or for `dev.py packs` without those variables. ## Testing **Tested:** Linux (CachyOS). `tests/test_dev_packs.py`'s new `test_upscaler_args` passes: each variable to its options, off when unset or 0, and each option checked to be one `make_game.py` takes. `mise run test`: 854 passed, 104 failed, the same 104 as on `main` at 79d192c on this PC, among them `test_dev_packs.py`'s own "a game patch shows in the objects" (`nx2/oot_patches.py`). **Still to test:** - Linux and Windows, AMD: a Test Farm build with `LONGSHOT_FSR=1` (and on Windows `LONGSHOT_FFX_SDK`) once Beanstalk's switch is in, expecting FSR 4 in the Upscaler menu and in the build's log (Beanstalk, after its change) ## Measurements Nothing to measure: a developer tool's options, with no effect without the variables. ## Risks `dev.py packs` with `LONGSHOT_FSR=1` or one of the SDK folders already set in a developer's shell now builds with them, as `make_game.py` alone never did for packs. Unset them to build without. Nothing changes for players. ## 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 for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(devtools): packs build with the upscalers the environment names (FSR 4, AMD's and Intel's runtimes)
Some checks failed
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 6s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 11s
CI / Workflow lint (actionlint) (pull_request) Successful in 11s
PR description / Description follows the template (pull_request_target) Successful in 8s
Third-party parts / As their notes say (pull_request) Successful in 13s
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Website build and checks (pull_request) Successful in 2m53s
dd8155f691
The Test Farm builds through dev.py packs, which passed make_game.py no upscaler option, so a farm
build had no AMD FSR 4 and no vendor runtime even where a tester accepted the license.
upscaler_args turns LONGSHOT_FSR=1 into --fsr, and folders scripts/fetch.py already filled
(LONGSHOT_FFX_SDK, LONGSHOT_XESS_SDK) into --fetch-*-runtime with the acceptance they were fetched
under. DLSS needed nothing: LONGSHOT_NGX_SDK already reaches make_game.py and build.py.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
HumanBean changed title from WIP: feat(devtools): packs build with the upscalers the environment names (FSR 4, AMD's and Intel's runtimes) to feat(devtools): packs build with the upscalers the environment names (FSR 4, AMD's and Intel's runtimes) 2026-11-23 19:48:05 +00:00
HumanBean deleted branch feat/packs-upscalers 2026-11-23 19:57:15 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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!2402
No description provided.