From d983df0c9b2b0f08e5ce21a020aebc256aa20f55 Mon Sep 17 00:00:00 2001 From: Pragyaan Gaur Date: Sat, 28 Nov 2026 20:58:05 +0530 Subject: [PATCH 1/3] test(gpu): move the replay test's results to a shader resource before the draws read them The synthetic frame in replay/testing.rs read its results buffer as a root SRV after only a UAV barrier, which is not valid D3D12. D3DMetal then let the draws race the compute pass, and the replay test failed on every run on an M2 Ultra. This is rocketmoonio's change from #699, which they closed without a review. --- crates/victory-gpu/src/replay/testing.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/victory-gpu/src/replay/testing.rs b/crates/victory-gpu/src/replay/testing.rs index b39595315..3ca0af9e9 100644 --- a/crates/victory-gpu/src/replay/testing.rs +++ b/crates/victory-gpu/src/replay/testing.rs @@ -890,6 +890,15 @@ impl Program { }), }, }]); + // The draws read the results as a shader resource: from what + // the pass left (promoted from common) to what they read, so a + // host (D3DMetal) orders the draws after the pass. A barrier of + // unordered access alone left them racing on an M2 Ultra. + l.ResourceBarrier(&[transition( + &self.results.0, + D3D12_RESOURCE_STATE_UNORDERED_ACCESS, + D3D12_RESOURCE_STATE_ALL_SHADER_RESOURCE, + )]); } } From a30140ee5cbf61ed0b5943d303b3e6920855d087 Mon Sep 17 00:00:00 2001 From: Pragyaan Gaur Date: Sat, 28 Nov 2026 20:58:05 +0530 Subject: [PATCH 2/3] feat(setup): VICTORY_JOBS caps the parallel build jobs setup.sh, build-deps.sh and build-crossover-wine.sh ran make with one job per core. VICTORY_JOBS=4 ./setup.sh now caps make and cargo (through CARGO_BUILD_JOBS unless that is already set), and setup.sh refuses a value that is not a whole number of 1 or more. Unset, nothing changes. This is MiniBandit's change from #698, which they closed without a review. --- README.md | 2 ++ setup.sh | 7 +++++++ tools/macos/build-crossover-wine.sh | 5 +++-- tools/macos/build-deps.sh | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d6b6bf3b8..b2a694301 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,8 @@ cd VIctory-macOS The setup installs what it needs with Homebrew. It then builds the x86_64 libraries and CrossOver Wine, adds D3DMetal from the toolkit, and builds VIctory. The first run takes about an hour, almost all of it spent building Wine. If anything stops it, fix what it says and run it again, because finished steps are skipped. +The builds use every core, which makes the fans run high. To keep the Mac cooler, cap them with `VICTORY_JOBS`: `VICTORY_JOBS=4 ./setup.sh` uses four, and takes longer. + When it says **Setup finished**, you can check that VIctory starts: ```bash 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" "$@"; } From f03d4a43304daaf9e0c35c2e1f0d0281941f1106 Mon Sep 17 00:00:00 2001 From: Pragyaan Gaur Date: Sat, 28 Nov 2026 20:59:02 +0530 Subject: [PATCH 3/3] docs: bring the README's tester status and the gallery up to 28 November The important note now says the player has control in the prologue cell on several Macs and gives the current frame times. The tester table gains the runs reported on #50, #513, #577, #619, #632, #662 and #664, and the gallery gains the clips and screenshots posted from 27 November on. --- README.md | 8 +++++++- docs/gallery.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b2a694301..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).