Skip to content

uncharted-android 0.3.5 (beta)

Choose a tag to compare

@revvv991 revvv991 released this 17 Nov 20:06
· 18 commits to main since this release

uncharted-android 0.3.5 (base: uncharted_pc 0.3.14) - beta: Uncharted 3's spider rooms run at full speed (chapter 7 ran at 10-15 FPS on the Retroid Pocket G2), a rare hang or crash of Uncharted 3 is fixed, and the app now says what is wrong with a copy of the game instead of crashing or stalling without a word. 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).

Fixed

  • Uncharted 3: the rooms with the spider swarm ran at 10-15 FPS - chapter 7, "Stay in the Light", and the swarm's return in chapter 11; on the Retroid Pocket G2 at 1280x720 the room now holds the 30 FPS limit (15.0 and 13.2 FPS before, 30.0 and 30.0 after, in two pairs of runs). One pixel shader of the swarm's material picks values from a small table by an index. The translated shader chose among all 84 of its registers at each of twelve such reads, more than the shader compiler of an Adreno has registers for, so it kept values in memory: 52 ms of GPU time a frame for a small part of the screen. The reads are now limited to the table (0.5 ms a frame); the picture is the same. The three shaders are compiled once more when they are first met.
  • Uncharted 3 could hang or close now and then (on the roofs of chapter 2 about once in 13 runs of 90 seconds on the Retroid Pocket G2, and in 0.3.4 too). Small results the GPU wrote were copied into the game's memory a few milliseconds late, and once in a few thousand copies the game had already used that memory for something else - a list of GPU commands, a table of pointers - which then got the GPU's old numbers. Such a copy now lands only where the game has not written since: 19 runs there without a failure, at the same frame rate. The parser of the compute queues, which such broken commands made copy far past its buffer, also checks what it reads now and says in the log what does not fit (Compute queue <n>: ...).

Changed

  • A damaged or incomplete copy of Uncharted 3 is named instead of a crash (#33, #39). Uncharted 3 closed right after it was chosen in the collection's menu when the texture dictionary of its effects did not load (u3data/build/main/texturedict1/ps4/chunk-41-tstrm.pak or chunk-41-tstrm-1.pak missing, damaged or from another version of the game). The app now stops with that reason, in the log and on the launcher's bottom line. If you see it, copy the game's files again from your dump.
  • Copy the log holds the last three runs. Every start of the game used to write the log anew - and the collection's menu handing over to a game is a start too - so the log of a crash was replaced when the game was started again. The copy is one file with the three runs, the oldest first. The launcher's bottom line also says why the last run stopped, when its log has the reason.
  • A copy without the 1.02 update is named (#36). The launcher's "Ready to play" line says which games are not version 1.02, what follows (1920x1080 only, and the port's fixes for the games are off there: a low frame rate and stalls are likely) and where the update goes (<game folder>-UPDATE next to the game folder); the game's log says the same in one line at its start.

For developers

  • BB_GPU_PROFILE=2: the GPU profile also splits a pass wherever its draws' pixel shader or depth and blend state change, so each such run of draws gets its own time, draws and indices; =3 adds fragment shader invocations. The times are true per shader where the driver runs a pass's draws in order (TU_DEBUG=sysmem on Turnip). android/scripts/g2/gprof_split.py <log> sums the profile's blocks into a table (ms, draws, fragments, ns a fragment per shader).
  • A translated shader whose relative register reads (V_MOVRELS) reach more than 16 registers without a known bound is named in the log (Shader <hash>: a relative register read over N registers, no bound known); BB_MOVREL_RANGE=<hash>:<count> sets a bound to try.
  • BB_BAD_FILE=<part>:missing, <part>:short:<bytes> or <part>:zero:<bytes> makes one game file missing, short or zeroed at its start, to reproduce a report from a damaged copy on a device with a good one. Opens and reads of game files that fail for another reason than "not found" are named in the log.
  • The run scripts take the collection menu's starting game from the newest of the three saves and say WRONG GAME when a run's log belongs to another game than the one asked for. android/scripts/g2/runs/build_pairs.sh runs two builds of the app turn by turn on one scene (for a crash that comes once in many runs), waiting for the charger's current and the PMIC to settle before each run; android/scripts/g2/failure_tally.py counts the failures of each build, hangs and assertions included.
  • BB_WARM_MODE=0 (no preload of the shader store) no longer writes into the store: such a session numbered the shaders anew and wrote over stored ones, and later starts skipped hundreds of stored pipelines.
  • GPU data that reaches guest memory late (the small results copied back beside a guest write; the landings of deferred copies) lands only on the words the game has not written since the copy was made, a compare-and-swap each; the copies that met newer bytes are said in the log (Late GPU data: ...). BB_LATE_GPU_GUARD=0 turns it off; BB_LANDING_GUARD=1 guards the landings too (by default they are only watched).
  • The compute queues' maps and unmaps, doorbells past a ring and the first packets cut by a ring's end are said in the log (Compute queue <n> ...). A queue mapped again at an index starts at its ring's offset 0 (BB_ASC_KEEP_OFFSET=1: the old way), and an unmap waits for the queue's unfinished work.

Known issues

  • Snapdragon 865 / Adreno 650 (#36): 0.3.2 and later start there with a recent third-party Turnip (MrPurple T30 in the report), not with the bundled one.
  • 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 (the game's job code reads memory that was reused; about once in two hours of play here, more often where the frame rate is below the limit). 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. Under investigation.
  • Rarely the picture stops for 10 seconds once or twice in play (GPU page faults; seen once in Uncharted 1's chapter 10 in a dozen runs of it). Under investigation.
  • The sizes below 1080p need version 1.02 of the executables (#3).

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

Checksums

  • uncharted-android-0.3.5.apk SHA-256: ea812d3e1b39e18cdb09af8bddfed68524891891223b4461f8b88b94ffafae0f
  • Signing certificate SHA-256: e9f4c3735869e415fbf21647eafb7991b05d6e926f9daf0eea0f88fc3e7bc60b