Skip to content

Battle Brothers (0100C5000F294000) on Android: a profile for update 1.14.0 - #747

Open
marojiro wants to merge 1 commit into
igawa6:mainfrom
marojiro:battle-brothers-android
Open

marojiro wants to merge 1 commit into
igawa6:mainfrom
marojiro:battle-brothers-android

Conversation

@marojiro

Copy link
Copy Markdown

What and why

Battle Brothers (0100C5000F294000) had no profile in Peanuts Native or Banana Native, so the builder stopped with no profile for 0100C5000F294000 in dm/games. This adds its profile for update 1.14.0 (v917504), with the game's note (dm/games/0100C5000F294000/README.md), its row in the games table, the release list and the catalog row, and its row in the release list's pinned frame rate caps (dm/tools/tests/test_android_frame_rate_games.py, marked).

  • The profile is the one dm/games/profile_guess.py writes from the survey, with the tables shader_split.py writes. Nothing in it is set by hand; only the header comments say what it is.
  • Shaders: 44 (28 pixel, 16 vertex): 17 GLSLC outputs in data/shaders/*.nvn, 27 embedded in main. They translate to 45 modules, every one valid for spirv-val --target-env vulkan1.3; the library is 0.1 MB. Profile inputs f4df373af60a, unchanged by the header comments.
  • No rewriter patches: the general rewrite and the SDK-wide rules are enough.
  • Build IDs (from the log, PN_BUILD_ID): main 57f4c72367f6be95cfc6f7ad2edc63c2, sdk 357efc198e728cb5d55265aff304f03c.
  • The README tables and peanuts/games.json are left to catalog.yml, as NEW-GAME.md says.

Checked

Everything below ran on Linux (x86-64, Python 3.14, JDK 21) on this branch.

  • Python tests: DM_GAME=0100C5000F294000 python3 -m unittest discover -s dm/tools/tests: 1,742 tests, 20 failures, 71 errors, 59 skipped. The same run on an unchanged origin/main checkout gives the same counts in the same modules, most from this machine not being a Mac or lacking a tool: test_nsp_mac_app (renamex_np), test_nsp (builds a host unit test, which does not build on Linux, below), test_host_msl and test_regress (libproc.dylib), test_spirv_cross_pin (lipo, the Mac binary), test_own_compilers (Xcode), test_xlate_bin_lock (dotnet not on PATH), test_vka_memu, test_android_saves and test_android_saf (cause not traced; the same failure on the unchanged checkout), and test_romfs_image (fails on the unchanged checkout too, 3 runs of 4). test_docs.py, test_android_games.py, test_android_gamefonts.py, test_android_gamelist.py and test_android_frame_rate_games.py pass.
  • python3 -m unittest discover -s peanuts/tests: 727 tests, OK (3 skipped).
  • Lint: dm/tools/lint_python.py with .github/requirements/lint.txt: the same findings on this branch as on origin/main (none in the changed file).
  • Unit tests: not run. make -C dm/host/tests GAME=0100C5000F294000 run does not build on Linux (t_language.c: qos_class_t), and 06-dev-loop.md does not ask for them for a profile change. dm/gfx/tests not run: the change does not reach graphics or the shader chain.
  • Profiles: peanuts/scripts/check-profiles.sh (186 titles) and dm/peanuts/profile/gen_runtime_profile.py check-all (186 profiles) pass.
  • peanuts/scripts/upstream-update.sh --check origin/main: passed. peanuts/scripts/check-publish.sh origin/main: clean. dm/tools/pr_risk.py origin/main HEAD: nothing flagged.
  • Phone runs on a test app (dev.nxnative.android.peanutstest, built with -PnxGames=0100C5000F294000 -PnxPackEngine=fake, the pack made on Linux with scripts/pack_android.py): the title menu, a new campaign, saving and loading a save, and the campaign on the world map, with the nine add-ons (0100C5000F295001 to 0100C5000F295009) found by the game. No crash.
  • GPU drivers: Turnip Gen8 V39 (Mesa 27.0.0-devel, driver ID 18), and the phone's system driver (boot and play only; its version and figures were not recorded).
  • Phone, chip, RAM and Android version: Motorola signature, Adreno 829, 11.0 GiB of RAM as the launcher reports it, Android 17.
  • Measurements (Turnip, Docked output 1080p, FSR 1): 60 fps in the menus and on the world map, also at the widest zoom; on the title menu the phone's overlay showed CPU 9 %, GPU 10 %. The game sets a 2.68 GB heap in the profile's 2.75 GB heap region.

Not checked:

  • The base game alone (v0): only the update was surveyed and played, so the profile lists only v917504.
  • The Mac and iOS path.
  • The on-device Build: the test app was built with the fake pack engine and the pack came from the computer.
  • Frame rate and log figures on the system driver.
  • The launcher's lower frame rate caps (30, 20, 15). With the default cap the host logs [nvn] present cap 60 fps not applied: this main has neither a frame step nor an engine frame limit; the game paces itself at 60.
  • Known [RED] lines: NVN unimplemented function called: nvnBlendStateSetAdvancedNormalizedDst once at startup (the name is in the game's own main; no wrong picture seen, caller not traced), and the generic gfx: mtl_pso_prebuild_tool not yet on Android.

Docs

  • The finding is in its game note (dm/games/0100C5000F294000/README.md); no general mechanism, so no docs/reference entry and no symptom index change
  • A chain tool changed: not applicable
  • No game files, keys or data extracted from a game in the change or the attachments
  • Source only: no binaries, nothing under dm/third_party/, no change to dmsh_chain.lock; the branch starts from the current main (0766fc9)

Battle Brothers had no profile in Peanuts Native or Banana Native, so the
builder stopped with "no profile for 0100C5000F294000 in dm/games". The
profile is the one dm/games/profile_guess.py writes from the survey of
update 1.14.0 (v917504), with the shader tables shader_split.py writes:
44 shaders (17 GLSLC outputs in data/shaders, 27 embedded in main), which
translate to 45 modules valid for spirv-val --target-env vulkan1.3. Nothing
in the profile is set by hand; the header comments say what it is.

Checked on a Motorola signature (Adreno 829, Android 17) with Turnip Gen8
V39: the title menu, a new campaign, saving and loading a save, and the
world map at 60 fps, also at the widest zoom, with the nine add-ons found
by the game. The game sets a 2.68 GB heap in the profile's 2.75 GB heap
region. It also boots and plays on the phone's system driver; no figures
were taken there. Not run on the Mac.

The game's note, its row in the games table, the release list and the
catalog row come with it. The release list's pinned frame rate caps
(dm/tools/tests/test_android_frame_rate_games.py) get its row, marked: the
launcher's default list for a game with no frame step, as Chained Echoes
has. The generated tables are allow-listed in peanuts/upstream-unmarked.txt
and the profile has its row in peanuts/UPSTREAM-EDITS.md.
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