iOS target
Same source tree, native arm64 iOS build. A UIKit backend replaces Cocoa (Playback audio session so the silent switch doesn't mute it, Files app access to the game folder)
DXMT for iOS: UIKit instead of AppKit, no macOS-only Metal APIs, shader caches in Library/Caches, Metal shaders built for iphoneos, LLVM cross-built for iOS
Xcode stub app, increased-memory-limit entitlement, Game Mode keys; deploy/run/log scripts over devicectl. Released as an unsigned IPA for sideloading
Everything targets iOS 15.0 now
Getting a correct frame on Apple GPUs
- Degenerate triangle strips with a vertex behind the camera drew garbage streaks on the A15 -> rewritten on the CPU as indexed triangle lists
- NaN/inf writes to R11G11B10/RGB9E5 targets -> filtered and clamped
- The big one: DXMT's LLVM (via Xcode's libc++) bound to our layer's 16-bit wmemchr. InstCombine silently dropped vector lanes and ~60% of converted shaders came out wrong (black SSAO, broken water). Found by retagging the iOS dylib as macOS and loading it on the Mac. Fix: a private 32-bit wmemchr inside DXMT
- A13: given the A14 format table, and draws whose pipelines fail are skipped
- A12: DXMT writes raw GPU addresses into argument buffers (tier 2, A13+). A12 only has tier 1, so we added a second path that writes them through MTLArgumentEncoders, DX10 only. Newer chips keep the normal path unchanged
- Data-side bugs from the ETC conversion, e.g. river flow maps read as the wrong format made currents ~8x too strong
- A Rockstar PC bug: a draw could be set up with the previous draw's vertex buffer after it was freed -> fixed on every Apple build
Our own Metal renderer (November)
- RAGE's PC renderer stays (D3D11 feature set, PC data). Its GPU objects became Metal-backed objects of the same size, so PC resources still load unchanged, and grcore draws straight to Metal: no D3D11 call per draw. ~23k lines
- Shaders ahead of time: every program -> SPIR-V (the game's HLSL through DXC, DXVK's DXBC compiler for the rest) -> MSL with SPIRV-Cross -> Apple's offline compiler. ~9,100 metallibs ship in a 60 MB pack (zstd with a trained dictionary) together with their bindings: no conversion and no first-use stutter in game
- Encode thread: the render thread records into a 32 MB ring and another thread encodes Metal. Hot 13 Pro in the city: render thread 93% -> ~60% of a core, +1-5% fps
- Argument tables per stage. A9-A12 (tier 1 argument buffers) run DX10 with tables written through MTLArgumentEncoders; iOS 15 gets MSL 2.4 and direct binds. Just know My goal is to run this on the Ipad M5Whether the code is readable. If GoW.exe has a Steam DRM wrapper or Denuvo, the real code is packed or obfuscated and a static recompile can't work on it. We'd need a clean, unpacked image. This is the first thing to check and it can stop the plan. How it talks to Windows. The import table lists every Win32, DXGI/DX11, XInput, audio and file call the game makes. That list is the job list for the Windows stand-in layer. A few hundred calls is manageable. Where the functions are. x64 exes usually carry unwind tables (.pdata), which give nearly exact function boundaries. That makes recompiling much more reliable than the NBA 2K18 job was. I also need the jump tables, indirect calls and vtables (RTTI class names help with naming). CPU features. I need to know how much SSE4 and AVX/AVX2 it uses, since each instruction needs a NEON version on arm64. I also need its thread-local storage use and its exception handling (SEH/C++ unwinding), which are the hardest parts to carry over. Bundled DLLs. Likely Oodle (oo2core_*.dll), steam_api64, and maybe AMD/NVIDIA upscaler DLLs (FSR/DLSS) and Wwise. Each one gets recompiled, replaced with an arm64 build, or stubbed out. Graphics. The DX11 shaders sit in the game's data archives, not the exe. From the exe I need the DX11 calls it makes and how it loads shaders. Converting those shaders to Metal ahead of time is a separate step. Memory and threads. That means its job system, how many threads it starts, any fixed-address assumptions, and how much memory it allocates. Memory is the limit the Reddit port hit: iPadOS kills the app if it goes over.
- Metal 4 (BETA) path for iOS/macOS 26 on A14/M1 and newer
- DXMT stays in the launcher's Renderer row: Metal 3, Metal 4 (BETA), DXMT*_
x64 PE32+, 20.0 MB, 8 sections. Now let me check the Python tooling and run a full PE structural pass (sections, entropy, data directories, DRM markers).
Both available. Writing the structural pass script:
First pass already tells a lot. Entry point (0x519f310) sits in a .bind section with entropy 7.97 — that's the classic Steam CEG (Custom Executable Generation) DRM wrapper. Let me verify thoroughly and pull the full import list, version resource, RTTI, and an entropy map of .text:
This is gold — identity confirmed (Santa Monica Studio, "God of War", internal codename int8, PDB ...\PC\PlatinumSteam\GameP.pdb, build GoW-4757534, May 25 2022) and no Denuvo markers, but the entry point + encrypted .bind section = Steam CEG wrapper. The main .text entropy (5.6–6.5) suggests the game code itself is intact. Now the ISA/structure pass: .pdata-anchored disassembly of all ~52k functions, TLS callbacks, exports, full KERNEL32 list, and RTTI confirmation:
Outstanding results. Key findings so far: ~100% clean disassembly of 51,831 functions, essentially SSE2-only code (no AVX/AVX2/FMA to speak of), RTTI actually present (1,610 class names — my first scan missed them because MSVC puts type descriptors in .data, not .rdata), FSR2/DLSS-NGX/AMD-AGS statically linked and exported by name. Let me finish with: RTTI samples + vftable count, the 2 unclean functions, TLS callback + CEG stub characterization, and the remaining strings:
The two "unclean" entries are actually MSVC x64 jump tables (dword offset arrays) that .pdata happens to cover — the code itself is 100% disassemblable. The .bind stub does stack-decryption (classic packer/loader), TLS callback is the standard MSVC CRT one, RTTI gives real class names (Wwise CAk*, engine dc::Client<tEntity>, Steam wrapper classes), and the audio stack (Wwise+XAudio2) is statically linked. Let me corroborate the DRM identification with a quick external check, then write the report:
Confirmed externally: a .bind section = SteamStub (Steam DRM wrapper), and per the PCGamingWiki technical notes, code encryption is optional in SteamStub — many wrapped exes leave the body unencrypted, exactly what we're seeing. Steamless (v3.0/3.1 x64 unpacker) can strip it. No Denuvo, no CEG. That's the go/no-go answered: GO.
Analysis complete. Full report: findings/GoW_exe_feasibility.md (scripts GoW_pe_pass1..4.py in the workspace for reproduction).
Verdict: GO — the plan survives its first gate
1. DRM (the stopper): PASS. GoW.exe is God of War 2018 PC (Santa Monica, codename int8, module GameP, build GoW-4757534, May 25 2022). No Denuvo, no CEG — only the SteamStub wrapper: an encrypted 249 KB .bind section (entropy 7.97) with the entry point in it, doing v3.x-style relative-address stack decryption. Crucially the body is not encrypted (SteamStub's optional code encryption is off): .text entropy is uniform 5.6–6.5, and all 51,831 .pdata functions disassemble 100.00% cleanly. Run Steamless (3.0/3.1 x64) to strip it, then diff a runtime dump to confirm the stub applies no hidden binds.
2. Windows job list: small. 579 imports / 38 DLLs (~370 non-CRT). Graphics = exactly 3 imports (D3D11CreateDevice, CreateDXGIFactory1, D3DReflect) + COM vtables; XInput1_4 (2), steam_api64 (9), USER32 64, KERNEL32 146 (incl. fibers), ucrt 176. Plus runtime LoadLibrary paths (atidxx64/nvngx/D3D11CreateDeviceAndSwapChain).
3. Function boundaries: excellent. 51,869 unwind entries covering 80.4% of 13.9 MB .text (rest = alignment padding), mean 216 B / median 97 B, jump tables confirmed as MSVC x64 dword-offset arrays, RTTI intact (1,631 type_info names in .data — dc::Client<tEntity>, Wwise CAk*…), ~21.5k code pointers in data for vtable naming, no CFG.
4. CPU features: the best surprise — it's SSE2-only. Across 2.75M instructions: 1×AVX2, 39×AVX1, zero FMA3/BMI/MOVBE/AES/AVX-512; trace SSE3/4.1, negligible x87. /arch:AVX was never enabled (PS4/Jaguar origins). Your NEON job ≈ SSE2→NEON. TLS static template is only ~4.9 KB. The real carry-over work is MSVC table-based EH (__CxxFrameHandler3/__C_specific_handler) + fibers, not SIMD.
5. Bundled components: no Oodle (0 hits). Statically linked: Wwise (+XAudio2/DirectSound sinks), NGX/DLSS 1.6, FSR2 (open source — keep), AMD AGS (D3D11-only — stub). External DLLs to replace: bink2w64, steam_api64, libScePad, libSceJobManager (7-call API), and libSceGnm/libSceGpuAddress — 32 tiny PS4 texture-format/tiling helpers you must reimplement for the PS4-derived texture data.
6. Graphics: shaders ship as precompiled DXBC in archives (shaderpack, reflected at load via D3DReflect — no runtime HLSL compile) → your offline DXBC→SPIR-V→MSL pipeline maps straight onto the shader-load path. Dedicated render thread with queues (DxRenderThread, DxTextureQueue::mSemaphore).
7. Memory/threads: ~62.7 MB static BSS, 81.9 MB image, JobManager worker-count configurable, affinity calls to no-op. True heap budget needs measuring, but a 2018 PS4-target engine inside 16 GB is plausible (hypothesis — flag it).
Biggest remaining risks, in order: Steamless/runtime-diff sanity check → C++ EH + fibers carry-over → libSceGnm/GpuAddress reimplementation (your "data-side bugs" category) → Wwise-on-arm64 → own DXBC reflection.
