Play Windows games on Apple Silicon Macs. Free, open-source app that installs the official Battle.net, Steam, Epic and GOG launchers and lists your games in one library.
HTML apple-siliconbattle-netcrossover-alternatived3dmetaldiablo-ii-resurrecteddxmtea-appepic-gamesgame-porting-toolkitgogmac-gamingmacosmacos-gamingrockstar-gamessteamubisoft-connectwhisky-alternativewindows-gameswinewine-wrapper
Ship Steam support v2 with DXMT's tessellation cap (v1.6.9)
Mike Kim7379e36cf121
diff --git a/README.ko.md b/README.ko.mdindex 05ea95a408c..ed158102cfe 100644--- a/README.ko.md+++ b/README.ko.md@@ -80,7 +80,7 @@ soju install # 이후: soju battlenet / soju d2r / soju steam / soju epic /설치기는 **다운로드 전에 원하는 런처부터 선택**합니다. Steam만 선택하면 CX 엔진과 애플 GPTK를 받지 않습니다. Steam 그래픽 구성요소는 SHA-256으로 검증한 뒤 Soju 전용 Wine 11.0 환경에 자동으로 설치합니다. Battle.net·Epic·GOG는 공통 CX 엔진과 사용자가 별도로 받은 애플 GPTK를 사용합니다. 각 런처의 보틀·로그인·게임은 독립적으로 유지합니다.-[Soju 맥 앱 다운로드](https://github.com/BCD1210/soju/releases/download/v1.6.8/Soju-1.6.8-macos-arm64.zip): 네이티브 앱 프리뷰에서 설치된 게임과 보유 게임, 스토어 검색, 즐겨찾기, 게임 실행, 플랫폼 관리를 한 화면에서 다룰 수 있습니다. [설치 안내와 요구 사항](docs/DESKTOP.md)을 확인해 주세요.+[Soju 맥 앱 다운로드](https://github.com/BCD1210/soju/releases/download/v1.6.9/Soju-1.6.9-macos-arm64.zip): 네이티브 앱 프리뷰에서 설치된 게임과 보유 게임, 스토어 검색, 즐겨찾기, 게임 실행, 플랫폼 관리를 한 화면에서 다룰 수 있습니다. [설치 안내와 요구 사항](docs/DESKTOP.md)을 확인해 주세요.## 일상 명령diff --git a/README.md b/README.mdindex a061273cb7a..2b48c621819 100644--- a/README.md+++ b/README.md@@ -24,7 +24,7 @@ CodeWeavers' published sources; Steam uses a separate private Wine 11 setup.Apple's proprietary GPTK/D3DMetal is downloaded separately. Games and storeclients are not included.-**Current release: [v1.6.8](https://github.com/BCD1210/soju/releases/tag/v1.6.8).**+**Current release: [v1.6.9](https://github.com/BCD1210/soju/releases/tag/v1.6.9).**The compatibility examples below were verified on M4 Pro / macOS 26.5.D2R and Hogwarts Legacy are examples of supported games, not the scope of the project.@@ -98,7 +98,7 @@ soju install # then: soju battlenet / soju d2r / soju steam / soju epic / soThe installer asks which launchers you want **before downloading anything**. Steam-only installs skip the CX engine and Apple GPTK. Steam rendering components are downloaded with SHA-256 verification and installed in a Soju-owned Wine 11.0 runtime. Battle.net, Epic and GOG use the shared CX engine and your separately downloaded Apple GPTK. Each official client keeps its own bottle and shortcut in `~/Applications`.-[Download Soju for Mac](https://github.com/BCD1210/soju/releases/download/v1.6.8/Soju-1.6.8-macos-arm64.zip): the native desktop preview includes installed and owned games, store search, favorites, game launching and platform management. See [desktop setup and requirements](docs/DESKTOP.md).+[Download Soju for Mac](https://github.com/BCD1210/soju/releases/download/v1.6.9/Soju-1.6.9-macos-arm64.zip): the native desktop preview includes installed and owned games, store search, favorites, game launching and platform management. See [desktop setup and requirements](docs/DESKTOP.md).## Everyday commandsdiff --git a/README.zh.md b/README.zh.mdindex c7fef65c886..b6a1b5304ec 100644--- a/README.zh.md+++ b/README.zh.md@@ -84,7 +84,7 @@ soju install # 然后:soju battlenet / soju d2r / soju steam / soju epic /安装器会**先询问要安装哪些启动器,再下载对应组件**。仅选择 Steam 时,不会下载 CX 引擎或 Apple GPTK。Steam 图形组件经过 SHA-256 校验后,自动安装到 Soju 专用的 Wine 11.0 环境中。战网、Epic 和 GOG 使用共享 CX 引擎及用户单独下载的 Apple GPTK。各客户端的 bottle、账户和游戏分别保留。-[下载 Soju Mac 应用](https://github.com/BCD1210/soju/releases/download/v1.6.8/Soju-1.6.8-macos-arm64.zip):原生桌面预览版在一个窗口中管理已安装和已拥有的游戏、商店搜索、收藏、游戏启动和平台管理。[安装说明与要求](docs/DESKTOP.md)。+[下载 Soju Mac 应用](https://github.com/BCD1210/soju/releases/download/v1.6.9/Soju-1.6.9-macos-arm64.zip):原生桌面预览版在一个窗口中管理已安装和已拥有的游戏、商店搜索、收藏、游戏启动和平台管理。[安装说明与要求](docs/DESKTOP.md)。## 日常维护diff --git a/VERSION b/VERSIONindex d8c5e721a77..15d45d4b47e 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-1.6.8+1.6.9diff --git a/docs/COMPATIBILITY.md b/docs/COMPATIBILITY.mdindex 59f2617d7c6..0fda0af252b 100644--- a/docs/COMPATIBILITY.md+++ b/docs/COMPATIBILITY.md@@ -7,7 +7,7 @@ does not establish that its games work.| Game / store | Reported environment | Result and limits | Source || --- | --- | --- | --- || Diablo II: Resurrected / Battle.net | M5 Air (issue title), macOS 27, Soju 1.6.6 | Reporter reached gameplay at medium settings, 40–60 FPS. Resolution and session duration not supplied; edition name awaits clarification. | [#49](https://github.com/BCD1210/soju/issues/49) |-| Dark Souls III / Steam | M5 Pro, macOS 26.6.2, Soju 1.6.6 | DXMT stalls for about one minute on enemy kills and Continue. Reporter says per-game DXVK + MoltenVK removes the stalls, at about 30 FPS with a CPU limit. See the opt-in [renderer switch](STEAM-GAMES.md#per-game-renderer). | [#48](https://github.com/BCD1210/soju/issues/48) |+| Dark Souls III / Steam | M5 Pro, macOS 26.6.2, Soju 1.6.6 | DXMT stalls for about one minute on enemy kills and Continue. Reporter says per-game DXVK + MoltenVK removes the stalls, at about 30 FPS with a CPU limit. See the opt-in [renderer switch](STEAM-GAMES.md#per-game-renderer). Soju 1.6.9 also adds a DXMT [tessellation cap](STEAM-GAMES.md#tessellation-cap-dxmt) to try; not yet confirmed in the game. | [#48](https://github.com/BCD1210/soju/issues/48) || Honkai: Star Rail / Epic | MacBook Pro M5, macOS 26.3, Soju 1.6.5 | White screen, cannot reach gameplay. The report's selected “Works in-game” field conflicts with its description; **not a working-game confirmation**. Exact failing process and logs are still needed. | [#47](https://github.com/BCD1210/soju/issues/47) || Diablo II: Resurrected / Battle.net | M2 Max, macOS 26.0.1 | No game window. This OS is below the documented D2R minimum of 26.4. Soju 1.6.6 adds the missing preflight/diagnostic check; the reporter's result after updating macOS is still pending. | [#44](https://github.com/BCD1210/soju/issues/44) |diff --git a/docs/DESKTOP.md b/docs/DESKTOP.mdindex 091e200e5fd..b5543238d23 100644--- a/docs/DESKTOP.md+++ b/docs/DESKTOP.md@@ -1,6 +1,6 @@# Soju for Mac-[Download v1.6.8](https://github.com/BCD1210/soju/releases/download/v1.6.8/Soju-1.6.8-macos-arm64.zip)+[Download v1.6.9](https://github.com/BCD1210/soju/releases/download/v1.6.9/Soju-1.6.9-macos-arm64.zip)1. Unzip and move **Soju.app** into Applications or ~/Applications.2. Open **Platforms** to install or open Battle.net, Steam, Epic Games or GOG GALAXY.diff --git a/docs/STEAM-GAMES.md b/docs/STEAM-GAMES.mdindex fd978688ed9..21fcddb93df 100644--- a/docs/STEAM-GAMES.md+++ b/docs/STEAM-GAMES.md@@ -90,9 +90,26 @@ profiles. If a game updater or another tool changes the managed DLLs/overrides,Soju refuses to overwrite those changes; recovery copies are kept under theSteam bottle's `.soju-renderers` directory.-The upstream DXMT tessellation change mentioned in #48 has **not** been applied:-the reporter also found a Wine driver deadlock with upstream main, so replacing-the pinned runtime needs separate compatibility testing.+### Tessellation cap (DXMT)++Some games ask for far more tessellation than they need, which can keep the GPU+busy for a long time under DXMT. Steam support v2 (Soju 1.6.9) backports+upstream DXMT's `d3d11.maxTessFactor` option to the pinned DXMT. Upstream main+itself is not used, because it deadlocks in Soju's Wine driver.++After updating, close Windows Steam and run `soju steam-games` once to install+v2. Then put a `dxmt.conf` file in the game's folder, the folder Steam starts it+from. For a default Dark Souls III install:++```bash+DIR="$HOME/.battlenet-macos/steam-bottle/drive_c/Program Files (x86)/Steam/steamapps/common/DARK SOULS III/Game"+printf 'd3d11.maxTessFactor = 16\n' > "$DIR/dxmt.conf"+```++Try `8` if stalls remain. Lower values reduce tessellated detail; delete the file+to undo. The option applies only while the game uses DXMT, so run+`soju steam-games renderer dxmt "$GAME"` first if you switched it to DXVK.+Whether this removes the Dark Souls III stalls is still to be confirmed in [#48](https://github.com/BCD1210/soju/issues/48).### Renderer validationdiff --git a/docs/STEAM-PREBUILTS.md b/docs/STEAM-PREBUILTS.mdindex 1ad6db8b50d..74c2a0b369f 100644--- a/docs/STEAM-PREBUILTS.md+++ b/docs/STEAM-PREBUILTS.md@@ -1,9 +1,11 @@-# Steam support release v1+# Steam support release v2The package contains only these open-source components:- DXMT: notpop/dxmt commit `924a607e3eee06fad5be6f176d8510bb08bc418d`,- plus `patches/steam-dxmt-build.patch` (MIT; bundled DirectX headers retain their own notices).+ plus `patches/steam-dxmt-build.patch` and `patches/dxmt-max-tess-factor.patch`+ (a backport of upstream DXMT ef116534, the `d3d11.maxTessFactor` option)+ (MIT; bundled DirectX headers retain their own notices).- Wine 11.0 winemac: `db11d0fe6a169c457e23d007e20404643d067aa8`,plus `patches/steam-winemac.patch`, built with public driver symbols(LGPL-2.1-or-later).@@ -11,7 +13,9 @@ The package contains only these open-source components:- LLVM 15.0.7: `8dfdcc7b7bf66834a761bd8de445840ef68e4d1a`(Apache-2.0 with LLVM exceptions), statically linked into the renderer.-[Binary and corresponding source release](https://github.com/BCD1210/soju/releases/tag/steam-support-v1)+[Binary and corresponding source release](https://github.com/BCD1210/soju/releases/tag/steam-support-v2)+([v1](https://github.com/BCD1210/soju/releases/tag/steam-support-v1) used the same+revisions without the tessellation backport.)No Apple GPTK, game files, store clients, accounts or credentials are included.Clients are downloaded from their official installers separately. The manifest@@ -39,3 +43,9 @@ On M4 Pro / macOS 26.5: Wine 11.0 private-runtime migration, registry setup,D3D11 hardware device/swapchain creation and 180 presented frames using theDXMT winemetal module. The smoke test source is `tests/steam_d3d11_smoke.c`.The current native component deployment target is macOS 26.0.++v2, on M4 Pro / macOS 26.5 in a throwaway prefix: the smoke test again presented+180 frames. `tests/steam_d3d11_tessellation.c` draws 40,000 patches per frame+whose hull shader requests factor 64. It averaged about 124 ms per frame+without a cap (the same as v1), 12.3 ms with `d3d11.maxTessFactor = 16` and+5.0 ms with `8`. v1 ignores the option.diff --git a/docs/index.html b/docs/index.htmlindex 317dafbeadd..9c62509c6ed 100644--- a/docs/index.html+++ b/docs/index.html@@ -124,7 +124,7 @@ its own login, purchases, downloads and game updates.</p><section id="install" aria-labelledby="install-title"><h2 id="install-title">Choose your launchers. Get set up.</h2>-<p><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.6.8/Soju-1.6.8-macos-arm64.zip">Download Soju for Mac</a></p>+<p><a class="btn" href="https://github.com/BCD1210/soju/releases/download/v1.6.9/Soju-1.6.9-macos-arm64.zip">Download Soju for Mac</a></p><p>The native desktop preview combines installed and imported owned games, searches stores and manages all four launchers.Apple Silicon · app UI: macOS 14+ · Steam component build: macOS 26+.<a href="https://github.com/BCD1210/soju/blob/main/docs/DESKTOP.md">Setup and signing notes</a>.</p>diff --git a/resources/steam-support.json b/resources/steam-support.jsonindex a513d0c727c..ecc82e4159f 100644--- a/resources/steam-support.json+++ b/resources/steam-support.json@@ -1,23 +1,23 @@{- "version": "steam-support-v1",+ "version": "steam-support-v2","wine_version": "wine-11.0","minimum_macos": "26.0",- "url": "https://github.com/BCD1210/soju/releases/download/steam-support-v1/soju-steam-support-v1.tar.gz",- "sha256": "5e3588b0c0a47eb01ef0ddfd7f15b0cbd2f4c02dc4e885eacb785b6a42199a84",- "source_url": "https://github.com/BCD1210/soju/releases/download/steam-support-v1/soju-steam-support-v1-sources.tar.gz",+ "url": "https://github.com/BCD1210/soju/releases/download/steam-support-v2/soju-steam-support-v2.tar.gz",+ "sha256": "66cb0d95c2bf76d35b525b40e423e8b610e891bc61975078ae54661b51a2a86e",+ "source_url": "https://github.com/BCD1210/soju/releases/download/steam-support-v2/soju-steam-support-v2-sources.tar.gz","files": {- "SOURCES.txt": "af7bdac603cff3455b62096801b611ea3b927f5df6dd2348f85d04eca9a25abe",- "dxmt-x64/d3d10core.dll": "263bdd2a68ed2b07b12016decb0b6d8735ff7ecda09a8ecae43369378a122062",- "dxmt-x64/d3d11.dll": "2d1183bc5bf187e238ce564940c658d0357a985886a543e402aac29c161b7872",- "dxmt-x64/dxgi.dll": "b413bf4725a134901cefa5c9d25178e4a982e9e5cc686b76937834be14f58474",- "dxmt-x64/winemetal.dll": "54856fc868022fd1b4390c8fd5fd9f81b65db12f4b1ca6f14e7a3a26f9198bce",- "dxmt-x64/winemetal.so": "f36df00f748bc9e30964451f04f4be8cc07c46400a6957470e7fcc8c131b6b3f",+ "SOURCES.txt": "d3f604cc4bfa83de0574f94de3d2ba8605b63f03858996aa1b0c009117e56faa",+ "dxmt-x64/d3d10core.dll": "53bc695d1408abd9067cf219a70e11c2f00d0c9c4c1065516de0fcfc81b95186",+ "dxmt-x64/d3d11.dll": "539a8ad69f424f596e038ae3d4e7e4b1973c155f25dd7529578f73b424dc7b97",+ "dxmt-x64/dxgi.dll": "ec286d4323c2ac18fc405067526c93b07a9f5f1cef719ab15829e48b8bed79b9",+ "dxmt-x64/winemetal.dll": "799b0a094e6b0b9d1d967956ea8bff67792abdf24741a7a7035bf3e08febf7c5",+ "dxmt-x64/winemetal.so": "6ae39285534a645ce4f33e55c07bcdc111847231bf42b005d260b1b2ae6913dc","licenses/DXMT-MIT.txt": "6b928413c6308c106f3e0080bd94b6427b56d587d400fd40e6cbfbab7d9c4ae1","licenses/DirectX-headers.txt": "f38e6194bd3bfa1b654f118e5acefe0aead437bbe669eee43957ccc65a7127f1","licenses/LLVM.txt": "8d85c1057d742e597985c7d4e6320b015a9139385cff4cbae06ffc0ebe89afee","licenses/Wine-LGPL.txt": "e237fa56668030e928551ddd60f05df5fe957f75eab874bbd017e085ed722e7c","licenses/wrapper-MIT.txt": "9678fa46fccba251d0444f19d73a4ca76118f33dbc711c8a4c73e7b63c62a1fa",- "steamwebhelper-wrapper.exe": "1142b7e16ded45f93c30fac278874ffd94577f1926a0e043779f79216936c080",+ "steamwebhelper-wrapper.exe": "9302da71a4eed969dd4d679ba133c7735dafd08abcd491acddd6015dee579898","winemac-patched.so": "750784fccc7a0f6cd77a4bc4b372f81c09ba29bc62e79897b38240b142808547"}}diff --git a/tests/test_installation.py b/tests/test_installation.pyindex 1beca0518d3..633978f640e 100644--- a/tests/test_installation.py+++ b/tests/test_installation.py@@ -207,5 +207,21 @@ echo fresh > "$out"; echo x >> "{d}/downloads"self.assertEqual((attempts, downloads), (1, 0))self.assertNotIn("Retrying", result.stdout)+class SupportManifestTests(unittest.TestCase):+ def test_published_manifest_names_one_release(self):+ m = json.loads((ROOT/"resources/steam-support.json").read_text())+ base = "https://github.com/BCD1210/soju/releases/download/" + m["version"] + "/soju-" + m["version"]+ self.assertEqual(m["url"], base + ".tar.gz")+ self.assertEqual(m["source_url"], base + "-sources.tar.gz")+ self.assertRegex(m["sha256"], "^[0-9a-f]{64}$")+ self.assertTrue(all(len(v) == 64 for v in m["files"].values()))++ def test_every_dxmt_patch_is_applied_by_the_build(self):+ script = (ROOT/"scripts/build-steam-support.sh").read_text()+ for patch in ("steam-dxmt-build.patch", "dxmt-max-tess-factor.patch"):+ self.assertTrue((ROOT/"patches"/patch).is_file())+ self.assertIn('apply_once dxmt "$ROOT/patches/' + patch + '"', script)+ self.assertIn("d3d11.maxTessFactor", (ROOT/"patches/dxmt-max-tess-factor.patch").read_text())+if __name__ == "__main__":unittest.main()