diff --git a/README.md b/README.md index d6b6bf3b8..5d40175c3 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ If you want to see GTA VI on a Mac, please star the repo and read + +- The same cell at full size. The yard outside the window is blotchy where shaders still do not translate (#50). + + The prologue cell and a blotchy yard on an M1 Max under VIctory + +- One of the washed-out frames on the same M1 Max, with a white wedge over the wall and the bunk (#50). + + A washed-out frame with a white wedge in the prologue cell on an M1 Max + +- A lit night street with a police car on ducks-c's 16 GB M1 Pro, Series S at 1920x1080, main `d1609d9`, 27 November 2026 (#632). + + A lit night street with a police car on an M1 Pro under VIctory + +- Buildings in the same run (#632). + + City buildings on an M1 Pro under VIctory + +- Daylight outdoors with foliage and the HUD bar, the same run, before a Rosetta hang about 28 minutes in (#632). + + Daylight foliage and the HUD bar on an M1 Pro under VIctory + +- Gameplay prompts on screen on the same M1 Pro in a later run, 28 November 2026 (#632). + + Gameplay prompts on screen on an M1 Pro under VIctory + +- Animacustoms's M1 Max (32 GB) on main `4396e31` with `VICTORY_SET=16gb` and an 8 GB GPU budget, at about 6 fps, 28 November 2026 (#662). + + The game world on an M1 Max with the 16gb switch set under VIctory + + A second view of the game world on the same M1 Max - The title screen on jjlange's M3 Max, 25 November 2026 (#50). diff --git a/setup.sh b/setup.sh index 9aba82e84..ed2a1826e 100755 --- a/setup.sh +++ b/setup.sh @@ -7,7 +7,14 @@ # CodeWeavers' CrossOver source, adds Apple's D3DMetal from the Game Porting # Toolkit in your Downloads folder, and builds VIctory. Run it again at any # time: finished steps are skipped. The first run takes about an hour. +# +# The builds use every core. To keep the Mac cooler and quieter at the cost +# of a longer first run, cap them with VICTORY_JOBS, for example +# VICTORY_JOBS=4 ./setup.sh set -eu +[[ -z ${VICTORY_JOBS:-} || $VICTORY_JOBS == <1-> ]] || { print -u2 "VICTORY_JOBS must be a whole number of 1 or more, not '$VICTORY_JOBS'"; exit 1; } +# Cargo has its own setting; VICTORY_JOBS sets it too unless it is set already. +[[ -n ${VICTORY_JOBS:-} ]] && export CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-$VICTORY_JOBS}" ROOT="${0:A:h}" # Resolve an explicit image path relative to the caller before changing folders. dmg="${GPTK_DMG:-}" diff --git a/tools/macos/build-crossover-wine.sh b/tools/macos/build-crossover-wine.sh index fb151ca17..9235f153d 100755 --- a/tools/macos/build-crossover-wine.sh +++ b/tools/macos/build-crossover-wine.sh @@ -14,6 +14,7 @@ # so neither a previous release nor an old patch can stay in the cache. set -eu VERSION="${CROSSOVER_VERSION:-26.3.0}" +JOBS="${VICTORY_JOBS:-$(sysctl -n hw.ncpu)}" ROOT="${0:A:h:h:h}" PATCHES=("${0:A:h}"/patches/*.patch(N)) # Keep the release readable so the partial install can check it separately. @@ -187,7 +188,7 @@ if [[ ! -f Makefile ]] || ! grep -q '^#define SONAME_LIBSDL2 ' include/config.h fi if (( installed )); then echo "rebuilding the server, ntdll and HID bus of the installed CrossOver Wine" - x86 make -j"$(sysctl -n hw.ncpu)" server/wineserver dlls/ntdll/ntdll.so dlls/winebus.sys/winebus.so > make.log 2>&1 || { grep -E 'error:|\*\*\*' make.log | grep -v Wno-error | head -5; exit 1; } + x86 make -j"$JOBS" server/wineserver dlls/ntdll/ntdll.so dlls/winebus.sys/winebus.so > make.log 2>&1 || { grep -E 'error:|\*\*\*' make.log | grep -v Wno-error | head -5; exit 1; } rm -f "$PREFIX/.victory-patches" "$PATCH_PATHS" install -m 755 server/wineserver "$PREFIX/bin/wineserver" install -m 755 dlls/ntdll/ntdll.so "$PREFIX/lib/wine/x86_64-unix/ntdll.so" @@ -197,7 +198,7 @@ if (( installed )); then install -m 755 "$DEPS/lib/libSDL2-2.0.0.dylib" "$PREFIX/lib/" else echo "building CrossOver Wine" - x86 make -j"$(sysctl -n hw.ncpu)" > make.log 2>&1 || { grep -E 'error:|\*\*\*' make.log | grep -v Wno-error | head -5; exit 1; } + x86 make -j"$JOBS" > make.log 2>&1 || { grep -E 'error:|\*\*\*' make.log | grep -v Wno-error | head -5; exit 1; } # Mark the prefix incomplete before modifying it, and invalidate any # D3DMetal overlay so setup.sh reapplies it after make install overwrites # Wine's own DLLs. diff --git a/tools/macos/build-deps.sh b/tools/macos/build-deps.sh index 4bfa56f8c..9dd0f489d 100755 --- a/tools/macos/build-deps.sh +++ b/tools/macos/build-deps.sh @@ -9,7 +9,7 @@ PREFIX="$1" SRC="${PREFIX:h}/deps-src" WORK="${PREFIX:h}/deps-build" BREW="${HOMEBREW_PREFIX:-/opt/homebrew}" -JOBS="$(sysctl -n hw.ncpu)" +JOBS="${VICTORY_JOBS:-$(sysctl -n hw.ncpu)}" . "${0:A:h}/native-build-tools.sh" x86() { arch -x86_64 /usr/bin/env PATH="$NATIVE_TOOLS:$BREW/opt/bison/bin:$BREW/opt/flex/bin:$BREW/bin:/usr/bin:/bin:/usr/sbin:/sbin" "$@"; }