refactor(build): no WGPU_NATIVE, the prebuilt Linux renderer only where older tools carry it, and no AVX2 requirement #73
No reviewers
Labels
No labels
area/build
area/install
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
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/LongshotLauncher!73
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:build/no-avx2-wgpu"
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?
Longshot removed its WebGPU renderer (MagicBeanDev/Longshot#577) and the Linux AppImage's prebuilt renderer (MagicBeanDev/Longshot#574), and builds on CPUs without AVX2, but the launcher still passes
WGPU_NATIVE, always passesLONGSHOT_VK_PREBUILT, and refuses a Linux PC without AVX2 ("The Linux AppImage requires AVX2").What changed
Core/MakeGameCommand.cs: noWGPU_NATIVEon Windows. Older tools'build.pytreats it as optional and builds without the WebGPU fallback when it is missing.LONGSHOT_VK_PREBUILT: passed only when the tools carrylib/longshot_vk.soand neither DLSS nor FSR 4 is on. Current tools carry none and never read it (Longshot'stests/test_linux_preflight.pychecks it is ignored), but AppImages before 2026-11-14 took the prebuilt renderer when it was set and may lack what compiling one needs, so it stays for them. Without the file it is removed from the environment, so a value in the player's shell isn't passed on.Fortakes afileExistsstand-in for the tests.Core/SystemRequirements.cs: no AVX2 check (Evaluateloses itsavx2andlinuxparameters, which only that check used; no other callers in the launcher or Longshot). The string is removed from the 12Core/Lang/*.jsonfiles.tests/launcher_core/RequirementsChecks.csandProgram.csfollow; README updated.Testing
Not compiled or run yet (the author runs no checks on their PC, and the lab machine has no .NET):
python -I tests/test_launcher_core.py --strict --longshot <Longshot main>andscripts/translations.py's check are still to run. Things to look at first: theEvaluatesignature change and thefileExistsparameter.Must be tested: the core checks on Linux and Windows; on Linux, a build of a current nightly without DLSS/FSR (compiles the renderer, as today) and, if one is still installable, a build of a release from before 2026-11-14 without DLSS/FSR (takes its prebuilt renderer).
Risks
A Linux PC without AVX2 now builds, as Longshot allows. Reverting the commit restores the old behaviour.
🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e3MfaADZobPGhWJk77
WIP: refactor(build): no WGPU_NATIVE, the prebuilt Linux renderer only where older tools carry it, and no AVX2 requirementto refactor(build): no WGPU_NATIVE, the prebuilt Linux renderer only where older tools carry it, and no AVX2 requirement