fix(build): step 2 asks each drive for what the build takes there, not a first build's 60 GB on the game's #263
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!263
Loading…
Reference in a new issue
No description provided.
Delete branch "Mone/LongshotLauncher:fix/rebuild-space"
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?
Step 2 holds every build to 60 GB free on the game folder's drive, a first build's figure. Rebuilding a version already on that drive, with the build files on another one, was refused for space it would not take: here, 18 GB free on C: for a 31.2 GB version whose build files are on E:.
What changed
Core/BuildSpace.cssays what each drive needs, and step 2 asks that instead ofDisk.BuildBytes:read_assets).BuildSpace.ReadSkipped): an update (--update), or a .nup whose.longshot_romfsstamp the folder already has (make_game.py's main skips the read then). Its romfs and kept exefs are checked, not written; the game's drive needs the rest of the folder (program files written beside the old ones and swapped in, shader caches) and a 5 GB margin, never more than a first build. The folder is measured on a pool thread (BuildSpace.Measure: ~187,000 files); until then the first build's figure stands.BuildRegistry.Unpackedis public: the stamp check is the oneSameGameFilesalready uses.The two figures are estimates: 10 GB for the build files (docs/user/common-issues.md says ~4 GB once done; compiling and a new translation's copy add to it) and the 5 GB margin. A first build's 60 GB is unchanged, and so is step 1's requirements card, which only advises.
Related: #212 (explaining the build's sizes).
Testing
Tested
dotnet build LongshotLauncher.slnx -c Release: 0 warnings, 0 errors; the app tests (tests/launcher_app) pass.tests/launcher_core/BuildSpaceChecks.cs(new): the first build's 60 GB on one drive; the build files' share moved to their drive; a kept folder's rest and margin; never more than a first build; the margin at least; the stamp rules (no stamp, same .nup, another .nup by size,--update, romfs and exefs folders);Measurecounting the folder and its game files apart.Still to test
--update) of a kept folder.SavesChecks, andscripts/translations.pyreports catalog texts left over: both onmainas it is too (clean checkout of6887d57), not from this change.Screenshots follow in a comment.
Screenshots (Windows 11, launcher in Italian): step 2 for a rebuild of a 31.2 GB version on C: (18 GB free), build files on E:. Paths are blanked out.
Before: 60 GB asked on C:, Rebuild off.
After: 12 GB asked on C:, Rebuild on.
A full rebuild run through, started from the gear (#262) and allowed by the space check (#263): Nightly 763, upscalers turned off (DLSS, FSR 4, XeSS were on), Windows 11, game folder on C: with 18 GB free, build files on E:.
build_times.json): read 0.6 s (the .nup not read again: same stamp), lift 5.3 s (translation reused), compile 99 s (2 of 591 modules compiled; most of it planning and linking), finish 51 s, 157 s in all. Shader preparation then ran for ~20 s: the driver's pipelines were there already (longshot_programs.binandlongshot_prepared.binwritten again,longshot_vk_pipelines.binuntouched).ngxfolder went from the game folder. FSR 4's and XeSS's DLLs stay (~110 MB): make_game.py removes FSR's mark only, and keeps XeSS's library by design; not this PR's to change.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.