A newer shell is available: v1.0.18. The shell and the repository must be from the same version; with the current
mainplease use v1.0.18.
已有更新的壳:v1.0.18。壳和仓库必须是同一版,配合现在的
main请用 v1.0.18。
English
NPC speech is back on iPhone and iPad, the app holds about 0.5 GB less memory, and the Mac App now plays sound and fills 16:10 screens. This page has two shells — pick the one for your phone's system.
| Asset | For |
|---|---|
D2RMobile-shell.ipa
| iOS 26 and later |
D2RMobile-shell-ios18.ipa
| iOS 18 – 25 |
Use the shell from this page — the fixes below live in the app itself, so an older shell does not have them even with the current main. The rewriter's output generation is unchanged (r44). If you build with Xcode, pull main and rebuild.
Sound
- NPC dialogue can be heard again. The game outputs 5.1 audio with dialogue on the centre channel. We used to hand all six channels to the system without a channel layout, and on stereo output the centre channel was dropped. The app now downmixes 5.1 to stereo itself (standard ITU-R BS.775 coefficients: centre and surrounds folded into left and right at −3 dB, LFE left out, 3 dB of headroom).
Memory
- About 0.5 GB less memory held on every device. The game creates large graphics memory pools at start; we used to make all of them resident for the GPU, which makes the system load and pin the whole pool — including a 512 MB pool the game never touches. Pools are now made resident only when the GPU first uses them.
- Devices with 4 GB of RAM are still not supported (see the README's device table): the game itself needs about 2.3 GB, and together with the graphics layer and the system it does not fit. Thanks to the player in #37 whose logs started this work.
Graphics layer
- Render targets written through a format-changing view are now attached with that view's format (#36). When a game writes an
RGBA8texture through anRGBA8_SRGBview, writes and clears are now sRGB-encoded as on the Switch; presenting from an sRGB swapchain texture samples through a non-sRGB view. D2R itself does not use either path; this matters for other games built on this repository's generic parts. Thanks to seedds, who found and diagnosed it on another port and proposed the fix direction. - Bloom and FXAA paths that rewrite a texture slot now mark the bindings dirty. With the current defaults this never changed what is drawn; it makes correctness independent of the game re-binding first.
Mac
- The Mac App plays sound. It used to run with the silent output meant for command-line tests. If no output device can be opened it keeps running silently instead of quitting. docs/MAC.md now says which two log lines to check when there is no sound.
- 16:10 screens are filled. On a 16:10 MacBook the game used to stay 16:9 with bars above and below, also in full screen. In game the picture now fills the window or screen at its aspect ratio, with the interface along the bottom (centred while a large panel is open); the main menu and character select stay 16:9. External 16:9 screens are unchanged.
How this release was checked
Both shells were built from the public tree in an empty working directory, in a normal Terminal environment (UTF-8 locale, no DOTNET_ROOT set), with the free-account switch on; each was then used, with the same tree and another empty working directory, to write an install package. The iOS 18 shell and its package read back a minimum system of 18.0 and contain no Metal 4 symbols. On the same fresh tree: the host build, the unit-test suites and the Mac smoke run; the older-API Mac App was built and started unattended into a game.
中文
iPhone / iPad 上的 NPC 对白重新有声音了,App 少占约 0.5 GB 内存,Mac App 有声音了、16:10 屏也能铺满。本页有两份壳,按手机的系统挑一份。
| 附件 | 给谁 |
|---|---|
D2RMobile-shell.ipa
| iOS 26 及以上 |
D2RMobile-shell-ios18.ipa
| iOS 18 – 25 |
请换上本页的壳——下面的修正在 App 程序本身里,旧壳配现在的 main 也没有这些修正。改写器产物没有换代(仍是 r44)。用 Xcode 构建的,拉取 main 后重新构建。
声音
- **NPC 对白重新听得到。**游戏输出的是 5.1 声道,对白在中置声道上。原先我们把六个声道原样交给系统、没设声道布局,在双声道输出上中置声道被丢掉了。现在由 App 自己把 5.1 混成双声道(按 ITU-R BS.775 的标准系数:中置和环绕各以 −3 dB 并入左右,低频不并入,整体留 3 dB 余量)。
内存
- **所有机型少占约 0.5 GB 内存。**游戏开局会建几块很大的显存区;原先我们把它们全部交给 GPU 常驻,系统会把整块读进内存并锁住,连游戏从来没用过的一块 512 MB 也一样。现在只有 GPU 第一次用到某一块时才让它常驻。
- 4 GB 内存的设备仍然不支持(见首页的设备表):游戏自己就要约 2.3 GB,加上图形层和系统的占用放不下。感谢 #37 的玩家,这项工作是从他的日志开始的。
图形层
- 经换格式视图写入的渲染目标,现在按视图的格式挂上(#36)。游戏经
RGBA8_SRGB视图写一张RGBA8贴图时,写入和清除现在和 Switch 上一样做 sRGB 编码;呈现 sRGB 格式的交换链贴图时改经非 sRGB 视图采样。D2R 本身走不到这两处,受益的是用本仓库通用部分做的其他游戏移植。感谢 seedds 在另一款游戏的移植中发现并定位了这个问题,并给出了修法方向。 - 泛光与 FXAA 那几处直接改贴图槽的地方,现在会把绑定标为已变。在现行缺省设置下这从未改变画出来的内容;补上是为了正确性不依赖游戏恰好先重新绑定。
Mac
- **Mac App 有声音了。**原先它走的是给命令行测试用的静音输出。打不开输出设备时,现在会静音继续运行,不再退出。docs/MAC.zh-CN.md 写明了没声音时看哪两行日志。
- **16:10 屏铺满。**原先在 16:10 的 MacBook 上,游戏一直是 16:9、上下留黑边,全屏也一样。现在进游戏后按窗口 / 屏幕的比例铺满,界面贴底(开大面板时居中);主菜单、选角等页仍是 16:9。外接 16:9 屏不变。
这一版是怎么验的
两份壳都是在空的工作目录里、按普通终端的环境(UTF-8 区域、不设 DOTNET_ROOT)、开着免费账号档,从公开的代码出的;随后各自配同一份代码和另一个空的工作目录做了一次包,写出了安装包。iOS 18 的壳和用它做出的安装包,读回的最低系统都是 18.0,里面没有 Metal 4 的符号。在同一棵全新的代码上跑了宿主构建、单测和 Mac 冒烟;老接口版的 Mac App 出包并无人值守地起到进游戏。