Commit Graph
35 Commits
Author SHA1 Message Date
shenleiandClaude Opus 5.5 3c25cd89fc Android: move the shell to dm/android and the Vulkan backend to dm/gfx/vulkan
Mirror the iOS layout instead of nesting Android inside dm/host:
- dm/android/app       GameActivity app (manifest, java, res, build_apk.sh)
- dm/android/Sources   front_app.c, touch_app.c, front_headless.c
- dm/android/Makefile  entry point (apk / lib / install / headless / tests);
                       rules in build.mk (was dm/host/Makefile.android),
                       run with dm/host as cwd; outputs in dm/android/build/
- dm/android/tests     t_vk_perf
- dm/gfx/vulkan        nvn_vk.c and friends, next to the Metal backend

Only include paths, build paths and docs change; no code changes.
The Mac / iOS source lists do not pick up gfx/vulkan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:59:36 +09:00
shenleiandClaude Opus 5.5 3429c6c0a4 Android: render at the screen's native height (900-1080), 3D target kept 720 high
UI and text now reach the screen 1:1 instead of through a 1.2x linear
upscale. The 3D scale on Android is derived from a 720-high target and
the two dynamic levels follow proportionally (720 -> 648 -> 630).
DM_3D_SCALE still sets an absolute scale. OnePlus 13: 2376x1080 output,
GPU 12.1 -> 11.9 ms/frame, 60 fps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:54:51 +09:00
shenleiandClaude Opus 5.5 3076dc4a69 Android: full frame rate after returning from background; no black blocks at the top on entering a run
- nvn_vk.c: present-link tick period estimated over a 60-tick window
  minimum and reset on refresh-rate change, so frame pacing no longer
  locks to ~20 fps after resume. Swapchain acquire barrier srcStage is
  TRANSFER (spec fix).
- GameActivity.java: HUD overlay without a hardware layer; compositing
  that offscreen layer on Adreno produced stepped black blocks at the
  top of the screen during the first ~18 s in game.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:54:51 +09:00
shenleiandClaude Opus 5.5 4d91f80bae Android port (Adreno): Vulkan backend, GameActivity app, touch HUD, lifecycle, minimap quest goals
- host/android: Vulkan replay backend (nvn_vk.c) with pipeline/descriptor caching, ADPF,
  AChoreographer present link; Linux compat layer; Makefile.android (headless dmhost + APK lib)
- android/app: GameActivity shell without Gradle (build_apk.sh), AAudio output, touch HUD port
  (touch_app.c + TouchOverlay.java, three layers: body / joystick / minimap goals),
  lifecycle save-on-background like iOS, art_from_ipa.py for touch / HUD / mapgoal art
- touch: shared touch controls moved from ios/Sources to dm/touch
- patch_nso.py Android ruleset, dmsh_vk.py shader pack, DM_TOUCH_PRODUCT defaults
- hle_audio: AAudio resume waits through STARTING and reopens once on failure
- .gitignore: local resources/ (original game data) never committed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:55:05 +09:00
jhaizhou 5bc5a01087 Docs: which devices are supported (iPhone / iPad by chip and system, Mac), what the in-app dialogs mean, and what self-built packages do not include 2026-10-14 12:08:38 +08:00
jhaizhouandJoe Hu 2e7177c080 Greater Rift: two Guardians from level 75, overtime status spelled out (#33); item descriptions stay open on touch (#32); Mac: click monsters to attack, items take the mouse, Share Log
The overtime status (#33) was reported with a clear direction by Joe Hu, who also sent a patch along the same lines (#34).

Co-authored-by: Joe Hu <12777592+hubeiqiao@users.noreply.github.com>
2026-10-14 10:34:48 +08:00
jhaizhouandJoe Hu dc3cc22b9b Greater Rift: confirm before the next-level door (#25), robust return to a finished run, top bar capped at level 100 (#29), monster life clamp; Mac: close X on the rift page
The top-bar fix (#29) was reported and diagnosed by Joe Hu, who also sent a fix along the same lines (#30).

Co-authored-by: Joe Hu <12777592+hubeiqiao@users.noreply.github.com>
2026-10-14 07:02:05 +08:00
jhaizhouandJoe Hu 135773b44f Docs: regression checklist for Greater Rift minion life (verification matrix proposed by the reporter of #23)
Co-authored-by: Joe Hu <12777592+hubeiqiao@users.noreply.github.com>
2026-10-14 05:34:59 +08:00
jhaizhou feb2bb9fdc Greater Rift minion life fix (#23); Mac click-to-walk and keyboard key names; older-API declaration de-duplication 2026-10-14 05:22:34 +08:00
jhaizhou d9e95c3381 Older systems: iOS 18+ / macOS 15+ via the older-API build; floating left stick; runeword required level; Mac keyboard, mouse and docs; clearer older-device dialog 2026-10-14 01:49:25 +08:00
jhaizhou 2eb5758771 Turn snap-back smoothing and gamepad turning feel (r42); close several slow memory accumulations; Mac App mouse, language switch and warm-up list 2026-10-13 22:00:06 +08:00
jhaizhou eab0fada7c No-Xcode route: older devices (A16 and earlier) are supported - give the packaging tool a Legacy Device Pack with D2RM_ASTC_PACK 2026-10-13 19:52:03 +08:00
jhaizhou b50b976523 Older devices (A16 and earlier): a start-to-finish guide for the Legacy Device Pack
docs/LEGACY_DEVICES.md explains why older chips need an extra texture pack, how to build the astcenc encoder, the three commands that make the pack from your own game files, how to build the App with it and where the folder goes on the phone. The README links to it from the performance section and the status table. astc_pack.py now names the output folder "Legacy Device Pack", the name the App asks for.
2026-10-13 19:23:29 +08:00
jhaizhou 2b270ff76e Docs: the Mac version requires macOS 26 or later (the graphics layer is built on Metal 4); setup.sh notes it on older systems 2026-10-13 18:15:23 +08:00
jhaizhou 5f7d95f30f README: describe the project as an iOS / macOS compatibility layer 2026-10-13 18:03:36 +08:00
jhaizhou e2347294dd README: mention the native macOS version in the intro; update the other-platforms paragraph 2026-10-13 18:01:53 +08:00
jhaizhou 6a2474d917 Native macOS App (first version): dm/tools/mac_app.sh, docs/MAC.md
The Mac host can now be packaged as a double-click macOS App with keyboard, mouse and gamepad input, saves under Application Support, a first-launch resource-folder picker and save-before-quit. dm/tools/mac_app.sh builds it after ./setup.sh; by default the package carries no derived content and points at this machine's build outputs, so it runs only on the Mac that built it and needs only a local ad-hoc signature.

Nobody has played this version by hand yet; what was verified was run unattended. See docs/MAC.md.
2026-10-13 16:49:19 +08:00
jhaizhou e0f3bba1da README: note user reports that .nsp packages work as well 2026-10-13 15:32:05 +08:00
jhaizhou ffab0bf5d2 Docs: name the game version as the console shows it (1.0.34.0, PC 3.3.94012); note community ports to other versions; package format is not checked 2026-10-13 15:28:59 +08:00
jhaizhou ef9b1ff137 Gamepad pause menu row order; close an ordering race in dirty-page tracking
- Gamepad pause menu: "Options" and "Game Difficulty" swap places. With a gamepad the cursor rests on the centre row when the menu opens, and pressing confirm right away used to change the difficulty setting. Touch layout is unchanged.
- Graphics layer (preventive): setting a page read-only now marks it BUSY until mprotect has landed, so an unprotect-before-write from another thread can no longer leave a page read-only with state NONE. Adds the unit test t_dirty_race, which stages the interleaving deterministically.
2026-10-13 14:57:34 +08:00
jhaizhou 00918bdd00 make_fixture.sh: present without the display link, like the Mac smoke run
When the game window is completely covered by another window, macOS sends no display-link callbacks and the script stopped on a "no callback for 2.0 s" report. The fixture run now passes DM_PRESENT_LINK=0, as smoke_mac.sh already does on a local machine.
2026-10-13 13:58:08 +08:00
jhaizhou b5c910ef98 Rewriter r41: fix the exit order of exclusive-window copies; equivalence check forces both branch directions
In rewritten compare-and-swap windows the sequential fall-out exit was placed after the external exits, so a successful write fell into the "compare not equal" exit and was handled as a failed compare (an operation done twice, or a lock-free list popped more than once). Stub 0 is now the fall-out exit. equiv.py now forces each conditional branch inside such a window through both directions, since random states practically never take the "equal" side.

The build output generation changes from r40 to r41; shells built for r40 are refused by the packaging tool. Use the v1.0.3 shell.
2026-10-13 13:47:28 +08:00
jhaizhou 30dc58383c setup.sh / d2rm_pack.py: find the .NET runtime for the shader translator (#19)
The built translator is a standalone program that locates the .NET runtime itself; with a Homebrew-installed .NET and no DOTNET_ROOT it could not start, and that was reported as "the translator was not built from the in-repo source". Both entry points now set DOTNET_ROOT from the runtime location dotnet reports when it is not set, and setup.sh runs the tool once right after building it and prints its own error if it does not start.

Diagnosed by @fjack in #19.
2026-10-13 11:49:20 +08:00
jhaizhou 4bbc403a5d Add verify/brace_scan.py: reject $NAME directly followed by a non-ASCII character in shell scripts 2026-10-13 11:43:10 +08:00
jhaizhou 7041472185 Give the game's main heap more headroom; add heap readouts to the memory log line (#18)
The game carves out a fixed ~3.08 GB and its main heap was left with roughly 100-180 MB free on entering a game, down to a few tens of MB while changing maps. When an allocation fails there, the original code writes through the null result. The pool reported to the game is now 512 MB larger, which turns one-to-one into main heap headroom; untouched heap pages do not count toward resident memory.

The periodic memory line now also logs the main heap total / free / largest allocatable block and, on iOS, the distance to the system memory limit.

Measured in the iOS package on a Mac; devices with 6 GB of RAM have not been measured yet.
2026-10-13 11:31:47 +08:00
jhaizhou 3897301a0d Custom page: language is now two explicit choices, 中文 / English (#12)
The single "Language: English" checkbox becomes two side-by-side options, readable in both UIs, with a hint under the row in the chosen language: tap Apply, then close and reopen the app. Storage is unchanged (still one key).

Suggested in #12.
2026-10-13 10:57:13 +08:00
jhaizhouandhubeiqiao a8e65cece8 Touch: keep idle skill icons clear, fade only the base and ring (#13, #15)
Idle skill and town-portal icons are no longer multiplied by the idle fade, so an available skill does not look disabled; the base circles and rings still fade to cover less of the view, and the out-of-charges grey state is unchanged.

Proposed by @hubeiqiao in #15.

Co-authored-by: hubeiqiao <12777592+hubeiqiao@users.noreply.github.com>
2026-10-13 10:29:15 +08:00
jhaizhouandhubeiqiao a1eb75288c Rift challenge timer follows the guest clock (#16, #17)
The timer no longer advances while the app is in the background or the screen is locked, or while the system keyboard is up. Loading screens, time in town and open panels still count. Start, HUD and menu readouts, the timeout check and settlement all read the same clock. Adds the host unit test t_rift_clock.

Idea and first implementation by @hubeiqiao in #17; re-implemented at the source after checking each site.

Co-authored-by: hubeiqiao <12777592+hubeiqiao@users.noreply.github.com>
2026-10-13 09:57:37 +08:00
jhaizhou c3f981251f Docs: note that game build 3.3.94012 is version 1.0.34.0 on the console 2026-10-13 09:12:24 +08:00
jhaizhouandhubeiqiao 66c3a2fb70 Fix setup on stock macOS bash, shader step false success, battery gate misreport (#4, #5, #7)
- Brace every $NAME that is directly followed by a non-ASCII character in the shell scripts: bash 3.2 in a UTF-8 locale read the first byte of the following character as part of the variable name and aborted under set -u (#4, #6).
- setup.sh and d2rm_pack.py: the shader translation step is complete only when every entry in the completion marker is ok and every library file exists; the script's exit status is no longer hidden by a pipe (#5).
- devbattery.sh / devlock.sh: a missing local timeout or ideviceinfo is reported as such and stops at once, instead of being reported as an offline device and polled for up to an hour (#7).
- smoke_mac.sh builds its package for iPhone only regardless of the project default.

Reported by @SakuraToErii. The setup.sh part of #4 was also submitted by @hubeiqiao in #6.

Co-authored-by: hubeiqiao <12777592+hubeiqiao@users.noreply.github.com>
2026-10-13 03:17:23 +08:00
jhaizhouandstrangeliu 824d2d3f0b Target both iPhone and iPad by default (#2)
Proposed by @strangeliu in #2. Applied at the source this repository is exported from, so the pull request itself is not merged directly.

Co-authored-by: strangeliu <5244588+strangeliu@users.noreply.github.com>
2026-10-12 21:36:47 +08:00
jhaizhou ea86e79688 Fix shell packaging (issue #1): drop stale prefetch list, clearer pack error; sync with trunk 2026-10-12 21:09:04 +08:00
jhaizhou 9f0c25768a README: use the English Trove screenshot 2026-10-12 17:10:56 +08:00
jhaizhou 286fbd417b State the required game edition: Reign of the Warlock expansion 2026-10-12 17:03:52 +08:00
jhaizhou 46578a2b5d Initial public release 2026-10-12 16:51:08 +08:00