Repository navigation
uncharted-android 0.3.6 (beta)
uncharted-android 0.3.6 (base: uncharted_pc 0.3.15) - beta: upstream uncharted_pc 0.3.15 is merged (Uncharted 3's Load Game hang and fixes for checkpoint loads and textures), a rare crash of Uncharted 1 is fixed, Uncharted 3 gains about 1 FPS without the frame rate limit, and the GPU skinning checks its own inputs, so the rare GPU fault storms can no longer start there. 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 1 could close now and then in play. On the Retroid Pocket G2 this happened about once in three hours without the frame rate limit. A job of the game's scene update read an object whose two fields the game's other code had not filled yet. The update now waits up to about 1.6 ms for them, and if they are still empty it skips the one query that needs them; the game does not use that query's result. In a test that skipped the query every time for two minutes, the game played on unharmed.
- The rare GPU fault storms are now caught at their likely source. In Uncharted 1 and 2 the picture could stop for about 10 seconds, and once the device restarted: the GPU read memory at garbage addresses that looked like vertex data. The GPU skinning work now checks on the GPU that each dispatch got the constants the port sent (a checksum) and that each job number is in its table. A dispatch that fails is skipped instead of reading at garbage addresses; at worst one frame of those vertices is lost. No storm in about 175 test runs since, and one garbage dispatch was caught on the way. There is no measurable frame rate cost (4 pairs of runs each in Uncharted 1 and 2). It is not proven that this was the storms' only source: if the picture still stops for seconds, please send the log.
- A data race in the port's pool of staging buffers (Uncharted 2 and 3's small reads of GPU results): two threads could create and free its buffers at the same time. The pool is now locked.
Merged from upstream (uncharted_pc 0.3.15)
- Uncharted 3: Load Game could hang. A timer request of the kernel's service thread could be lost (from iannitram's Uncharted-Universal).
- Garbage texture descriptors read during checkpoint loads no longer make the renderer bind billions of mip levels, and image barriers stay within the image's own levels and layers.
- Texture cache: an image serves a request only when it has enough levels and layers, and a depth target's stencil is only an image that can hold stencil.
- Uncharted 1's cross button prompt.
- The job descriptor guard also works on the 1.00 executables.
- Cheaper draw recording in dense scenes and constant copies reused within a submission. On the Retroid Pocket G2 the frame rate is the same.
Changed
- Uncharted 3 sends each frame to the GPU in parts (upstream's early submit; the launcher turns it on for Uncharted 3). On the Retroid Pocket G2, Uncharted 3's roofs run at 30.1 FPS instead of 29.1 without the frame rate limit. Uncharted 1 and 2 gained nothing from it and stay as they were.
For developers
BB_SKIN_GUARD: 1 (the default) checks each skinning dispatch's constants (a checksum, at the recording thread and in the shaders) and its job numbers; 2 also checks each job's buffer addresses against the device addresses handed out (one buffer a lane, gathered by a ballot), at about 0.4 FPS in Uncharted 1; 0 turns it off. A skipped job or dispatch is said in the log (Skin guard: ...), with whether its tables in the stream buffer still hold the bytes written.BB_SKIN_PUSH_TEST=Ncorrupts every Nth checksum andBB_SKIN_JOB_TEST=N(with 2) every Nth batch's first job, to see both reports work.BB_U1_SCENE_GUARD=0turns the Uncharted 1 fix off, and=2skips the query every time (the test above). The waits and skips are counted in the log.BB_BDA_AUDIT=1checks the entries of the buffer device address table every 2 s, and=2also reads the whole table every 30 s and in a stall report.BB_MEM_CHECK=1checks the runtime's copies, fills, inline writes and image copies and the buffer descriptors against their buffers.BB_STREAM_REUSE_CHECK=1checks that upstream's reuse of stream copies never binds changed bytes (16.7 million reuses in the three games here, none did).BB_EARLY_SUBMIT=1turns upstream's early submit on for any game, andBB_EARLY_SUBMIT_PIPE=1sends its parts through the draw pipe.- From upstream: the idle job workers wait
BB_JOB_SLEEP_MS; the port'sBB_JOB_WAIT_USsets it in microseconds. android/scripts/build_all.sh:EXTRA_APK_LIBSpacks extra libraries into a test build.
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 not a 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. Here that is about once in two hours of play, 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 this happens in about a third of the loads, and once it lasted 10 seconds. The kernel's GPU driver reports a hang at one place of the load and recovers. Under investigation.
- The sizes below 1080p need version 1.02 of the executables (#3).
- A dump made with Itemzflow stops at Preparing with
eboot.bin: expected PS4 SELF(#40, reported after this build was made). Being looked at.
0.2.7 to 0.3.5 offer this release in the app (Update). Or install uncharted-android-0.3.6.apk over the previous version (same signing key; settings and saves stay). Building from source: see the README.
Checksums
uncharted-android-0.3.6.apkSHA-256:ad7d2ed476aeebf389a06d08e6dfd9be48a0ccf4fd9e19110feee2e2af7d95e3- Signing certificate SHA-256:
e9f4c3735869e415fbf21647eafb7991b05d6e926f9daf0eea0f88fc3e7bc60b