Repository navigation
Add Sea of Stars (01008C0016544000): v0 + v983040 builds and Android profile - #659
Open
Alliance-Sky wants to merge 3 commits into
Open
Alliance-Sky wants to merge 3 commits into
Alliance-Sky wants to merge 3 commits into
Conversation
…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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 game1.0.45861(v0) and update3.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) withdyn_filter off(DM_VK_DYN_FILTER=0on Qualcomm only).Memory
Three separate crashes required raising memory bounds, in order:
Hardware pool too small.
app_pool 0x60000000(1.5 GB) causedMapPhysicalMemoryto 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).Alias region exhausted. With
app_pool 0xCD500000and the originalmem_alias 0x118000000(4.375 GB),StandardAllocatorreserved 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 indocs/reference/memory.md). Fix:mem_alias 0x400000000(16 GB). High-water peaked at +7.00 GB in the 20-minute run.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 viaMAP_NORESERVE).mem_reserve 0x498000000(256 MB front + 16 GB alias + 2 GB stack + 128 MB heap).Drivers
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 withoutDM_VK_DYN_FILTER=0.512.762.41/0x802fa029, driver ID 8):DM_VK_DYN_FILTER=1(default): broken graphics from boot andVK_ERROR_DEVICE_LOST(-4) at GPU submission 1039/1076 (also withDM_VK_ZSHARE=0).DM_VK_FD_ALIAS=0is refused since placed maps are unsupported.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.dyn_filter(on/off, defaulton) wired throughdm/games/game.py,dm/peanuts/profile/,dm/gfx/vk_android/vka_draw.c,vka_auto.h, andvka_dev.c, soDM_VK_DYN_FILTERdefaults to0only on Qualcomm (driverID == 8) whendyn_filterisoff(Turnip and other drivers keep1). Setdyn_filter offon Sea of Stars (01008C0016544000). Therecommendrow still prefers Turnip (driver=18) on Qualcomm< 512.800when installed.Readiness
readiness.tsvrecordsstatus playable, adegraded ram_gib 10row (2.03 GB peak mapped on 11.0 GiB phone; smaller phones untested), and the shader library's capability rows fromlibrary_caps.py:required feature.shaderDrawParameters,required limit.maxComputeSharedMemorySize 32768,degraded feature.geometryShader(1 geometry module),degraded feature.shaderStorageImageWriteWithoutFormat(5 modules). Adding it also adds01008C0016544000togradle.propertiesnxGamesso 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, sdk3053B22935E32DDF15EF81997603E5C2dev.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.dev.nxnative.android.seaofstars,512.762.41/0x802fa029withDM_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 OKcc -Wall -Wextra dm/host/tests/t_android_auto.c -o /tmp/t_android_auto && /tmp/t_android_auto: okpython3 dm/tools/tests/test_docs.py: 11 OK (after regeneratingdocs/agents/game-patches.mdwithdm/tools/docs_patches.py)python3 dm/tools/tests/test_game_profile.py: 22 OKpython3 dm/tools/env_switches.py --check: OKpython3 dm/tools/recommend.py: 7 rows, all validpython3 dm/peanuts/profile/gen_runtime_profile.py check-all: 185 profiles, all macros knowndump_const.cvsdump_runtime.cfor01008C0016544000): OKbash peanuts/scripts/check-profiles.sh: 185 titles OK (including01008C0016544000: package v983040 == highest build v983040)sh peanuts/scripts/check-publish.sh origin/main: cleanbash peanuts/scripts/upstream-update.sh --check origin/main: check passed, every hunk marked or allow-listedpython3 dm/tools/pr_risk.py origin/main HEAD: 1 informational note (android/app/gradle.propertiesused at build time, expected)sea-of-stars(841d9e85):test_android_readiness.py(4 OK),test_android_games.py(3 OK),peanuts/tests/test_*.py(all excepttest_placed_memory_probe.py),check-runtime-version.sh(OK).Not checked:
dm/host/tests(full suite) anddm/gfx/tests(need macOS/Apple silicon)>= 512.800with placed maps)v786432build on the device (untested; basev0and updatev983040builds tested on the test APK, profile tables are thev0+v983040union)Docs
dm/games/01008C0016544000/README.md: memory findings, Android test results (Turnip and Qualcomm withDM_VK_DYN_FILTER=0), open issuesdm/games/README.md: Sea of Stars row updated with all three build versions;dyn_filterkey documenteddocs/advanced_settings.tsv,docs/env_switches.tsv:DM_VK_DYN_FILTERQualcomm profile default documenteddocs/agents/game-patches.md: regenerated viadm/tools/docs_patches.pypeanuts/UPSTREAM-EDITS.md: entries for all changed upstream filespeanuts/release-titles.txt,peanuts/games.tsv: added01008C0016544000(Sea of Stars,0.1.9,Alliance-Sky)