feat(devtools): packs build with the upscalers the environment names (FSR 4, AMD's and Intel's runtimes) #2402
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2402
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:feat/packs-upscalers"
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
The Test Farm builds main and a PR through
dev.py packs, which ranmake_game.pywith 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 intomake_game.py's own options, the same for a base and its packs:LONGSHOT_FSR=1→--fsr.make_game.pyclears the variable otherwise. A renderer-only pack runsbuild.py, which reads it as it is.LONGSHOT_FFX_SDK(withLONGSHOT_FSR=1) andLONGSHOT_XESS_SDK→--fetch-fsr-runtime --accept-amd-licenseand--fetch-xess-runtime --accept-intel-license. These are foldersscripts/fetch.pyalready 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.run()already passesLONGSHOT_NGX_SDKtomake_game.pyandbuild.py.Read first:
upscaler_argsandmake_gameinscripts/devtools/packs.py. Nothing changes for a player's build or fordev.py packswithout those variables.Testing
Tested: Linux (CachyOS).
tests/test_dev_packs.py's newtest_upscaler_argspasses: each variable to its options, off when unset or 0, and each option checked to be onemake_game.pytakes.mise run test: 854 passed, 104 failed, the same 104 as onmainat79d192con this PC, among themtest_dev_packs.py's own "a game patch shows in the objects" (nx2/oot_patches.py).Still to test:
LONGSHOT_FSR=1(and on WindowsLONGSHOT_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 packswithLONGSHOT_FSR=1or one of the SDK folders already set in a developer's shell now builds with them, asmake_game.pyalone never did for packs. Unset them to build without. Nothing changes for players.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
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
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)