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