mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 06:59:57 -04:00
Cap the default number of compiles by the free memory.
make_game.py ran one compile per logical processor whatever the memory. Without --jobs it now runs as many as 80 % of the free memory holds at 768 MiB a compile, the peak build_game.py records for one, never more than the processors and never fewer than one, on Windows and Linux alike. The build's first lines say the number and what decided it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -129,7 +129,9 @@ A path the Windows ANSI code page cannot hold breaks the MSYS2 tools, so the too
|
||||
- The RomFS image (26 GB, mostly disk work) is packed beside the lift and the compile (processor work), so a first
|
||||
build takes about as long as the longer of the two. Only `romfs.c`, which includes the RomFS index's
|
||||
`romfs_config.h`, waits for the image.
|
||||
- Every logical processor compiles, the largest files first, so no big file starts last and runs on alone.
|
||||
- Every logical processor compiles, the largest files first, so no big file starts last and runs on alone; fewer
|
||||
compiles run when memory is short, as many as 80 % of the free memory holds at 768 MiB each (`make_game.py`
|
||||
`default_jobs`).
|
||||
- The lifted code compiles with MSYS2 CLANG64's clang when the toolchain has it: the same LLVM release as
|
||||
UCRT64's, built with profile-guided optimisation, about a fifth faster on this code and writing the same objects
|
||||
(it reads UCRT64's headers; `make_game.py` `fast_clang` checks that both report the same version and target).
|
||||
|
||||
Reference in New Issue
Block a user