Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If you want to see GTA VI on a Mac, please star the repo and read <a href="CONTR
> If you would like to help, a sponsored Claude Pro or Max subscription or some Anthropic API credits would let me keep up with the project at its current pace. I would be very grateful for either. Please reach out on email if you can help: pragyaangaur12@gmail.com

> [!IMPORTANT]
> **The game is not playable yet, on the Mac or anywhere else.** On testers' Macs the game starts, plays its intro and audio, shows its loading screens, and on 25 November the game world appeared on two Macs (#50). Nobody has reached gameplay yet. The loading freezes testers hit on 25 November were two deadlocks inside Wine, found by LakshanSivakumar and fixed in #72, #75 and #78. With `VICTORY_PATCH_MASKED=all VICTORY_FAULT_TRACKING=1` the game now loads into the world without freezing on an M5 Pro and an M3 Max, and stays there for over 20 minutes. It is still far too slow to play, but getting faster: #111 cut world frames from about 4.5 seconds to 2.4 to 2.9 seconds on an M5 Pro (#50). With `VICTORY_PATCH_MASKED=all VICTORY_FAULT_TRACKING=1`, loading now runs at about 26 to 30 fps instead of 8 (#59, #60). VIctory on Windows boots the game, runs its menus, loads the world and now draws it, but only at one or two seconds per frame and with unlit surfaces and missing geometry. This project makes the whole VIctory platform run on a Mac, so the Mac moves forward as VIctory does. No game files are included here or ever will be. You need your own copy of the game.
> **The game is not playable yet, on the Mac or anywhere else.** On testers' Macs the game starts, plays its intro and audio, loads into the world and, since 27 November, gives the player control in the prologue cell on several Macs, from a 16 GB M1 Pro to an M5 Max (#50, #513, #632). It is still far too slow and wrong-looking to play. On current main a world frame takes about 0.2 to 1 s on most Macs, and the best tester numbers are about 6 fps on a 24 GB M5 Pro and an M1 Max with the memory switch set (#664, #662). Lighting is still partly missing, some surfaces flash white and some geometry is missing, mostly because a few dozen of the game's compute shaders still do not translate for Apple's 32-lane waves (#413, #553). Macs with 32 GB or less should start with `VICTORY_SET=16gb` (#454, #662). This project makes the whole VIctory platform run on a Mac, so the Mac moves forward as VIctory does. No game files are included here or ever will be. You need your own copy of the game.

## What works today

Expand Down Expand Up @@ -55,6 +55,12 @@ Several people who own the game have run it on their Macs and reported back in t
| M5 | At the Player prompt the game's 3840x2160 image held the picture while the 1920x1080 image sent to the window was black. | #15 |
| M2 Max, 32 GB, Series X | On 25 and 26 November, with CrossOver 26.3 and D3DMetal 4.0 beta 3, #167, #178 and local unmerged patches (mesh output counting and linking, and an opt-out of the wave32 path), the game reached the in-world prologue cinematics and the opening credits, with `VICTORY_KEYS` passing the prompts. In one earlier run the gameplay HUD appeared on screen; that player control responds has not been verified. Compiler disconnects fell to 0 and one mesh-size rejection remained. Heavy frames took about 2 to 10 s. Some runs ended in the game's heartbeat check, at different times in the world, and others reached a 30-minute cap. In the two runs that held A for 30 s during the opening cinematic, the picture went almost empty, which the runs without that hold did not do. | #28 |
| M2 Pro, 32 GB, Series X | On 25 and 26 November the game reached the world, the opening credits and the prologue's first gameplay prompt ("Move around / Move the camera"), and the camera followed input from the keyboard stand-in pad, at about 2 s per world frame. One run lasted almost 35 minutes before the game's watchdog stopped it. On main `b6dd0b1` with fault tracking the prologue yard drew recognisably (fence, guard tower, sky, figures), where a day earlier it was red and neon smears. Lighting is still broken and some layers are stale. | #50, #131 |
| M1 Max, 32 GB, Series X, 27 November | With `VICTORY_BARRIER_AFTER_CAP=1` (#514) the world draws and the player has control in the prologue cell, at about 1 s per frame and 4,900 draws per frame. Without it the TAA resolve shader was refused and the screen stayed black. White flashes, ghosting and grey skin remain, and 35 shaders still do not translate. | #50, #513 |
| M1 Max, 32 GB, Series X, 28 November | On main `4396e31` without a switch set the game used about 30 GB and deadlocked before the world. With `VICTORY_SET=16gb` and `VICTORY_GPU_BUDGET_MB=8192` it stayed under 10 GB and ran the world at about 6 fps. `VICTORY_RAY_SKIP=activate` took a frame from 731 to 607 ms. | #662 |
| M1 Pro, 16 GB, Series S, 27 and 28 November | On main `d1609d9` with a warm pipeline cache the game reached a lit night street, buildings, daylight outdoors and the gameplay HUD, about 28 minutes in, before Rosetta stopped with "EmulateForward". A second 16 GB Mac (M2 Pro) is trying to repeat it. | #632 |
| M5 Pro, 24 GB, Series X, 28 November | On halfwave50's fork with picks from this repository, the prison cell went from 195 to 163 ms per frame (5.1 to 6.1 fps) overnight. The issue lists which merged PRs helped and which did not. | #577, #664 |
| M5 Max, 64 GB, Series S, 27 November | On a separate avatarmanz-based branch with a Mac layer, about 6 to 8 fps in the world with clothes, hair, cars and tires drawn, from the prologue to free roam. Its fixes are listed for porting. | #448, #50 |
| M2 Pro, 32 GB, Series S, 27 November | The world load crashed on a divide by zero unless `VICTORY_UPSCALER=6`. #615 should fix it, and a run on current main is asked for. | #619 |
| M1 Max, 32 GB, Series X | On 27 November, on macOS 15.7.3 (an older Rosetta than most testers have) with D3DMetal 4.0 beta 3, the game reached the world and the opening credits and stayed alive there. Loading ran at 30 fps and world frames took 0.4 to 3.4 s with a warm shader cache; the first run, with about 500 pipelines still compiling, took about 10 s per frame. Getting there took `VICTORY_SKIP_CPU_CHECK` (this Rosetta runs AVX2 but leaves it out of CPUID), store lists for the title's DLLs as well as the executable, a fix for a BC5 texture viewed as BC7 that aborted Metal (#499) and ending a hung earlier run whose GPU memory froze the whole Mac (#500). The scene behind the credits stayed mostly black, with 170 to 1,050 draws per frame dropped, mostly from 115 wave64 compute shaders that do not translate for 32-lane waves. | #50 |
| M4, 16 GB | The game reached the world with its HUD (the minimap and the street panel) and the opening credits at 1280x720, at about 2.4 to 3.6 s per frame and 1,000 to 2,000 draws per frame. Turning on the atomic lock rounds (#257) took a world frame from 2.9 s to 0.88 s. | #240 |
| M4 Pro | The same build with only `VICTORY_ATOMIC_LOCK_ROUNDS` changed took a world frame from 5.29 s to 0.71 s and stopped the GPU resets (32 or more queue recoveries before, none after). That is why the rounds are now on by default under Wine (#307). | #240 |
Expand Down Expand Up @@ -99,6 +105,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
Expand Down
9 changes: 9 additions & 0 deletions crates/victory-gpu/src/replay/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)]);
}
}

Expand Down
44 changes: 43 additions & 1 deletion docs/gallery.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,48 @@
# What testers have seen

Screenshots and videos that testers posted in the issues, newest first within each Mac. They are kept here rather than in the README so the README loads quickly. Each one is the game window only, from the tester's own copy of the game.
Screenshots and videos that testers posted in the issues. The ones from 27 and 28 November are at the top, and the older ones follow. They are kept here rather than in the README so the README loads quickly. Each one is the game window only, from the tester's own copy of the game.

- [Video](https://github.com/user-attachments/assets/37e042d7-238b-4a75-b4ef-aef3f9eeecb8): hackgods's M5 Pro (64 GB), Series X, 27 November 2026, sped up about 10 times. The player walks around the opening cell, gets the "Approach a cellmate" prompt and then follows the prison guard to the door, at about 2.2 fps in this capture build (#513).

- [Video](https://github.com/user-attachments/assets/d878a14c-4266-4ffb-bdc9-aa4dd89408b4): Zeyphers's M1 Max (32 GB, macOS 15.7.3), Series X, 27 November 2026, sped up about 30 times. The prologue cell with the player in control, with white flashes, ghosting and grey skin still visible (#513).

- [Video](https://github.com/user-attachments/assets/7abab2d1-2abd-4e90-92a4-a20fcd30dddf): cirddan's 16 GB M5, Series S at 1280x720, 27 November 2026, sped up 4 times, on main `d1609d9` with #610 (#513).

- [Video](https://github.com/user-attachments/assets/cfa02500-354e-4831-b52f-b37975278448): gdemontalivet's M5 Max (128 GB), 27 November 2026 (#513).

- The prologue cell with the player in control on Zeyphers's M1 Max, about 1 s per frame and 4,900 draws per frame, with `VICTORY_BARRIER_AFTER_CAP=1`, 27 November 2026 (#50).

<img src="https://github.com/user-attachments/assets/6c2a6454-77d7-467f-927c-be68291e4302" width="480" alt="The prologue cell with the player in control on an M1 Max under VIctory" loading="lazy">

- The same cell at full size. The yard outside the window is blotchy where shaders still do not translate (#50).

<img src="https://github.com/user-attachments/assets/3d7b360c-dfc3-4e48-b26f-b48bca89ed11" width="480" alt="The prologue cell and a blotchy yard on an M1 Max under VIctory" loading="lazy">

- One of the washed-out frames on the same M1 Max, with a white wedge over the wall and the bunk (#50).

<img src="https://github.com/user-attachments/assets/c322d88b-e6d3-462e-92b3-27002de36414" width="480" alt="A washed-out frame with a white wedge in the prologue cell on an M1 Max" loading="lazy">

- 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).

<img src="https://github.com/user-attachments/assets/7b15e834-2405-4223-827d-6e8b3257a324" width="480" alt="A lit night street with a police car on an M1 Pro under VIctory" loading="lazy">

- Buildings in the same run (#632).

<img src="https://github.com/user-attachments/assets/bf494cf6-5668-4b3b-9df4-052ded82d408" width="480" alt="City buildings on an M1 Pro under VIctory" loading="lazy">

- Daylight outdoors with foliage and the HUD bar, the same run, before a Rosetta hang about 28 minutes in (#632).

<img src="https://github.com/user-attachments/assets/67dd3f4c-3b41-44ff-a0b2-d1d5cb8719aa" width="480" alt="Daylight foliage and the HUD bar on an M1 Pro under VIctory" loading="lazy">

- Gameplay prompts on screen on the same M1 Pro in a later run, 28 November 2026 (#632).

<img src="https://github.com/user-attachments/assets/c653c323-936a-413a-998c-e6871f5952f1" width="480" alt="Gameplay prompts on screen on an M1 Pro under VIctory" loading="lazy">

- 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).

<img src="https://github.com/user-attachments/assets/94af81b9-97e3-49fb-9de2-8883a25cf78a" width="480" alt="The game world on an M1 Max with the 16gb switch set under VIctory" loading="lazy">

<img src="https://github.com/user-attachments/assets/86338e07-2fe1-405b-b2f8-00752d181858" width="480" alt="A second view of the game world on the same M1 Max" loading="lazy">

- The title screen on jjlange's M3 Max, 25 November 2026 (#50).

Expand Down
7 changes: 7 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:-}"
Expand Down
5 changes: 3 additions & 2 deletions tools/macos/build-crossover-wine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tools/macos/build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" "$@"; }

Expand Down