Skip to content

uncharted-android 0.3.3 (beta)

Choose a tag to compare

@revvv991 revvv991 released this 14 Nov 21:36
· 20 commits to main since this release

uncharted-android 0.3.3 (base: uncharted_pc 0.3.14) - beta: the games' translated code is kept between runs, so a start and a loading no longer translate it again, and Uncharted 2 no longer crashes after some chapters are started from Chapter Select. No game files are included: you need your own decrypted dump of the collection (version 1.02 of the executables). Please attach the log to a report (Saves and logs > Copy the log).

New

  • The games' translated code is kept between runs. The games' x86 code is translated for the device's ARM processor while they run, and until now every start did that again: about 1.4 s of processor time in Uncharted 3 on the Retroid Pocket G2, most of it in the first seconds and when a level loads. The port now keeps the translated code in a file per game (about 130 MB for the three games and the collection's menu, in the app's own storage, removed with the app). The first run after this update plays as before and writes the files in the background; from the next run on that work is about 0.13 s instead of 1.4 s in Uncharted 3, and the longest frame while an Uncharted 2 level starts went from 0.27 s to 0.09 s. The frame rate in play stays where it was (Uncharted 3's heaviest scene without the limit: 29.1 against 29.2 FPS).
    • It needs Linux 5.7 or later in the device's kernel. On older kernels (Snapdragon 865, 870 and 888 devices as a rule) it stays off by itself and the game runs as in 0.3.2.
    • A file is written whole or not at all and is checked before use. If the game crashes while kept code is in use, the next start drops that file and builds it again; the same crash a second time turns the feature off for that game until the next version.
    • The switch is in the launcher: Advanced > Keep the games' translated code between runs. Off also removes the files.

Fixed

  • Uncharted 2 crashed once a chapter started from Chapter Select had loaded (#37): chapters 6-10, 13, 14, 18, 20, 23, 24 and 26, where the port gives Nate the chapter's own weapons (a fix merged from uncharted_pc 0.3.14). On Android that code called the game's functions in a way that only works on a PC.

For developers

  • BB_FEX_CODE_CACHE=0: the code cache off. BB_JIT_STATS=1: the JIT's compile time and the cache pages loaded, every 5 seconds in the log. BB_FEX_CACHE_CLEAR=1: this game's cache files are removed at the start. BB_FEX_CACHE_LOAD=0 / BB_FEX_CACHE_GEN=0: no load or no compile (for A/Bs on one fixed cache). BB_FEX_CACHE_GEN_DELAY=<seconds,...>: when the cache is compiled after a game's start (default 30,180, on an idle-priority thread; the later passes only for 256 new blocks or more - fewer wait for the next start). BB_FEX_CACHE_CHUNK=<1..256>: cache pages made ready at a time (default 16).
  • The files are in Android/data/dev.unchartedandroid/files/home/.cache/fex: <game>-<code hash>-<options>.fexcache (the cache; the options part covers the build, the processor's features and the FEX_* variables), <game>.blocks and <game>.<pid>.seen (the blocks to compile), <game>.guard (the record of crashes). The log's FEX code cache: lines say what happened to them in each run.
  • BB_FEX_CACHE_TEST=cut / crash:<seconds> / gencrash (optionally @<part of the game's name>): tests of the cache's safety net - a file cut short must be refused, a crash recorded.
  • FEX patch 0004: with code caching on, FEX padded every relocatable constant in all code; now only where code is compiled for a cache. android/scripts/port-arm64/rebuild_fex.sh rebuilds FEXCore after a change to the FEX patches.

Known issues

  • Uncharted 3: Drake's desert clothes from chapter 16 on and the horses of chapters 19 and 20 are drawn stretched (#35). A reporter found the cause: the port's batched skinning writes these models' vertices at the wrong spacing (the code agrees; the fix is being prepared). Until it is out, the line BB_SKIN_BATCH=0 in Advanced > Extra environment for the port turns that batching off: on the reporter's device it removed the glitch and a crash when a gun is fired in chapter 20 (not tried on the Retroid Pocket G2 yet; it costs some frame rate where many characters are on screen). Another skin for Drake (the Rewards menu) avoids his part of it too.
  • Snapdragon 865 / Adreno 650 (#36): 0.3.2 starts there with a recent third-party Turnip (MrPurple T30 in the report); Uncharted 1 then stopped after its first cinematic. Under investigation.
  • Uncharted 3 crashed right after it was chosen in the collection's menu on an Odin 3 (Adreno 830, #33); 0.3.1 has a fix that may cover it, not confirmed yet.
  • Controller setup: a controller in a keyboard or mouse mode is no controller to Android and cannot be set up; switch it to another mode.
  • Adreno 8xx: tested on one phone (an Adreno 825); the 830 and 840 may behave differently. Reports with the log are welcome.
  • Uncharted 3 can still crash once in a while in long sessions (the game's job code reads memory that was reused; under investigation). Save often.
  • Without the frame rate limit the GPU is the limit in Uncharted 3's heaviest places (the market chase at about 30 FPS on the Retroid Pocket G2). A phone without a fan heats up fast in Uncharted 3: keep the 60 limit there and let it cool between long sessions.
  • Uncharted 2 still moves a little unevenly at the frame rate limit: its view does not follow the game's frame clock.
  • Uncharted 2: while chapter 4 (The Dig) loads, the picture can stop for a fifth of a second once or twice (on the Retroid Pocket G2 in about a third of the loads; once for 10 seconds): the kernel's GPU driver reports a hang at one place of the load and recovers. It does not come from this version's changes (it happens with the kept code switched off too); under investigation.
  • The sizes below 1080p need version 1.02 of the executables (#3).

0.2.7 to 0.3.2 offer this release in the app (Update); or install uncharted-android-0.3.3.apk over the previous version (same signing key; settings and saves stay). Building from source: see the README.

Checksums

  • uncharted-android-0.3.3.apk SHA-256: 80468bc6029e8e0f2c956ab93635670b55d9db2434d28f99ca93f292f9c0d5aa
  • Signing certificate SHA-256: e9f4c3735869e415fbf21647eafb7991b05d6e926f9daf0eea0f88fc3e7bc60b