Skip to content

Add Sea of Stars (01008C0016544000): v0 + v983040 builds and Android profile - #659

Open
Alliance-Sky wants to merge 3 commits into
igawa6:mainfrom
Alliance-Sky:sea-of-stars
Open

Alliance-Sky wants to merge 3 commits into
igawa6:mainfrom
Alliance-Sky:sea-of-stars

Conversation

@Alliance-Sky

@Alliance-Sky Alliance-Sky commented Nov 25, 2026 •

Copy link
Copy Markdown

What and why

Adds a playable Android profile for Sea of Stars (title ID 01008C0016544000, Unity 2021.3.25f1 IL2CPP with Wwise, SDK 16.2.0) using the base game 1.0.45861 (v0) and update 3.0.60151 (v983040) alongside the existing upstream v786432 profile.

The game plays at 60 fps on a OnePlus 13R (Snapdragon 8 Gen 3, Adreno 750, 11.0 GiB RAM, Android 16, SDK 36) with Turnip for 20+ minutes through boot, MP4 intro, cutscenes, scripted battle, town, town exit, and further gameplay and battles, and at 59.4 fps median on Qualcomm's system driver (512.762.41) with dyn_filter off (DM_VK_DYN_FILTER=0 on Qualcomm only).

Memory

Three separate crashes required raising memory bounds, in order:

  1. Hardware pool too small. app_pool 0x60000000 (1.5 GB) caused MapPhysicalMemory to fail (ResultLimitReached) at 1.43 GB mapped at the cutscene-to-gameplay transition. ALLOC_DEFAULT_THREAD (main+0x48d0a0) wrote to the unbacked page (CRASH sig=11 SEGV_ACCERR). Fix: app_pool 0xCD500000 (3.285 GB).

  2. Alias region exhausted. With app_pool 0xCD500000 and the original mem_alias 0x118000000 (4.375 GB), StandardAllocator reserved 3.14 GB at alias +0.06 GB, leaving only ~1.18 GB for Unity. The same mechanism as SPY x ANYA Operation Memories (SEGV_MAPERR addr=0x3fffe0, main+0x48d0a0, same failure described in docs/reference/memory.md). Fix: mem_alias 0x400000000 (16 GB). High-water peaked at +7.00 GB in the 20-minute run.

  3. Stack region fragmented on town exit. At ~450 s, nn::diag abort: Result 0, call site sdk+0x136578 (MapAliasStack -> StackGuardManager::MapAtRandomAddress): 47 live stacks (113.0 MiB, 10 of them 8 MB) left no contiguous 8 MB + guard slot in the 256 MB stack region. The same mechanism documented in memory.md. Fix: mem_stack 0x80000000 (Horizon's full 39-bit stack region, 2 GB, zero RAM overhead via MAP_NORESERVE). mem_reserve 0x498000000 (256 MB front + 16 GB alias + 2 GB stack + 128 MB heap).

Drivers

  • Turnip (Turnip_Adreno_Driver_T30_Mr_Purple_666_, driver ID 18, v983040): 20+ minutes / 88,113 frames at 60.0 fps median (p10 = 59.5 fps, p5 = 57.0 fps). 234 graphics + 91 compute pipelines, 0 failed, 0 draws skipped. 394,000+ audio callbacks, 0 underruns. 2.03 GB peak physical mapped, +7.00 GB alias high-water. Works without DM_VK_DYN_FILTER=0.
  • Qualcomm system driver (512.762.41 / 0x802fa029, driver ID 8):
    • With DM_VK_DYN_FILTER=1 (default): broken graphics from boot and VK_ERROR_DEVICE_LOST (-4) at GPU submission 1039/1076 (also with DM_VK_ZSHARE=0). DM_VK_FD_ALIAS=0 is refused since placed maps are unsupported.
    • With DM_VK_DYN_FILTER=0: reached the frame loop and played 7,589 frames (212.79 s, clean user stop) at 59.4 fps median (p50 = 16.6 ms, p95 = 22.59 ms), 117 pipelines made, 0 failed, 0 audio underruns across 36,000 device callbacks, 0 non-standard [RED] lines.
    • Fix: added profile key dyn_filter (on/off, default on) wired through dm/games/game.py, dm/peanuts/profile/, dm/gfx/vk_android/vka_draw.c, vka_auto.h, and vka_dev.c, so DM_VK_DYN_FILTER defaults to 0 only on Qualcomm (driverID == 8) when dyn_filter is off (Turnip and other drivers keep 1). Set dyn_filter off on Sea of Stars (01008C0016544000). The recommend row still prefers Turnip (driver=18) on Qualcomm < 512.800 when installed.

Readiness

readiness.tsv records status playable, a degraded ram_gib 10 row (2.03 GB peak mapped on 11.0 GiB phone; smaller phones untested), and the shader library's capability rows from library_caps.py: required feature.shaderDrawParameters, required limit.maxComputeSharedMemorySize 32768, degraded feature.geometryShader (1 geometry module), degraded feature.shaderStorageImageWriteWithoutFormat (5 modules). Adding it also adds 01008C0016544000 to gradle.properties nxGames so default APK builds include it.

Checked

Device: OnePlus 13R (CPH2691, Snapdragon 8 Gen 3, Adreno 750, 11.0 GiB RAM, Android 16, SDK 36)
Build: v983040, main A98AED47B317106CCE87C4A682916216, sdk 3053B22935E32DDF15EF81997603E5C2

  • Turnip run (dev.nxnative.android.peanutstest): boot, MP4 intro, cutscenes, scripted battle, town, town exit, world map, further gameplay and battles. 88,113 frames, clean user exit, 60.0 fps median.
  • Qualcomm system driver run (dev.nxnative.android.seaofstars, 512.762.41 / 0x802fa029 with DM_VK_DYN_FILTER=0): boot, intro, gameplay through 7,589 frames (212.79 s), 59.4 fps median, 0 failed pipelines, 0 audio underruns.

Tests run:

  • python3 dm/tools/tests/test_auto_defaults.py: 3 OK
  • cc -Wall -Wextra dm/host/tests/t_android_auto.c -o /tmp/t_android_auto && /tmp/t_android_auto: ok
  • python3 dm/tools/tests/test_docs.py: 11 OK (after regenerating docs/agents/game-patches.md with dm/tools/docs_patches.py)
  • python3 dm/tools/tests/test_game_profile.py: 22 OK
  • python3 dm/tools/env_switches.py --check: OK
  • python3 dm/tools/recommend.py: 7 rows, all valid
  • python3 dm/peanuts/profile/gen_runtime_profile.py check-all: 185 profiles, all macros known
  • Runtime profile equivalence (dump_const.c vs dump_runtime.c for 01008C0016544000): OK
  • bash peanuts/scripts/check-profiles.sh: 185 titles OK (including 01008C0016544000: package v983040 == highest build v983040)
  • sh peanuts/scripts/check-publish.sh origin/main: clean
  • bash peanuts/scripts/upstream-update.sh --check origin/main: check passed, every hunk marked or allow-listed
  • python3 dm/tools/pr_risk.py origin/main HEAD: 1 informational note (android/app/gradle.properties used at build time, expected)
  • Earlier on sea-of-stars (841d9e85): test_android_readiness.py (4 OK), test_android_games.py (3 OK), peanuts/tests/test_*.py (all except test_placed_memory_probe.py), check-runtime-version.sh (OK).

Not checked:

  • dm/host/tests (full suite) and dm/gfx/tests (need macOS/Apple silicon)
  • Newer Qualcomm drivers (>= 512.800 with placed maps)
  • v786432 build on the device (untested; base v0 and update v983040 builds tested on the test APK, profile tables are the v0 + v983040 union)
  • iOS: unsigned IPA untested on a device

Docs

  • dm/games/01008C0016544000/README.md: memory findings, Android test results (Turnip and Qualcomm with DM_VK_DYN_FILTER=0), open issues
  • dm/games/README.md: Sea of Stars row updated with all three build versions; dyn_filter key documented
  • docs/advanced_settings.tsv, docs/env_switches.tsv: DM_VK_DYN_FILTER Qualcomm profile default documented
  • docs/agents/game-patches.md: regenerated via dm/tools/docs_patches.py
  • peanuts/UPSTREAM-EDITS.md: entries for all changed upstream files
  • peanuts/release-titles.txt, peanuts/games.tsv: added 01008C0016544000 (Sea of Stars, 0.1.9, Alliance-Sky)

…file

Support base 1.0.45861 (v0) and update 3.0.60151 (v983040) alongside
upstream 2.0.59001 (v786432):
- Add build rows for v0 and v983040, set package v983040, and merge
  shader_map/facts/pairs + pso_pairs as the v0 + v983040 union, with
  shader_optional.tsv listing the 1,543 v0-only keys absent from
  v786432/v983040.
- Raise Android memory bounds to app_pool 0xCD500000 (3.285 GB; peak
  mapped 2.03 GB in gameplay after 1.5 GB refused at 1.43 GB),
  mem_alias 0x400000000 (16 GB; high-water +7.00 GB after 4.375 GB
  exhausted VA at +4.25 GB), mem_stack 0x80000000 (2 GB Horizon stack
  region; town exit hit sdk+0x136578 at 47 live stacks / 10 x 8 MB
  in 256 MB), and mem_reserve 0x498000000.
- Add recommend rule preferring Turnip on Qualcomm drivers < 512.800
  (512.762.41 / 0x802fa029 draws broken graphics from boot and hangs
  with VK_ERROR_DEVICE_LOST at submission 1039/1076; DM_VK_FD_ALIAS=0
  is refused since placed maps are unsupported).
- Add dm/games/01008C0016544000/readiness.tsv (status playable,
  ram_gib 10, shaderDrawParameters, maxComputeSharedMemorySize 32768,
  geometryShader, shaderStorageImageWriteWithoutFormat) and add
  01008C0016544000 to nxGames in android/app/gradle.properties.
- Update game README, dm/games/README.md, Peanuts bookkeeping, and
  add 01008C0016544000 to peanuts/release-titles.txt and peanuts/games.tsv.

Verified on OnePlus 13R (Snapdragon 8 Gen 3, 11.0 GiB, v983040) with
Turnip T30 for 20+ minutes (88,113 frames, 60.0 fps median, 0 failed
pipelines, 0 audio underruns).
…ter off)

On Qualcomm 512.762.41 (0x802fa029, Adreno 750), Sea of Stars drew broken
graphics from boot and hit VK_ERROR_DEVICE_LOST (-4) at submission
1039/1076 with DM_VK_DYN_FILTER=1, while Turnip T30 played 20+ minutes at
60.0 fps without it. With DM_VK_DYN_FILTER=0, Qualcomm 512.762.41 ran
7,589 frames (212.79 s) at 59.4 fps median with 0 failed pipelines and 0
audio underruns.

Add profile key dyn_filter (on/off, default on) and wire it into
vka_draw.c / vka_auto.h / dm/peanuts/profile so DM_VK_DYN_FILTER defaults
to 0 only on Qualcomm drivers (driverID 8) when dyn_filter is off,
leaving Turnip and other drivers at 1. Set dyn_filter off on Sea of Stars
(01008C0016544000).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant