Repository navigation
uncharted-android 0.3.0
Pre-releaseuncharted-android 0.3.0 (base: uncharted_pc 0.3.11). Still experimental; no game files are included, you need your own decrypted dump of the collection (version 1.02 of the executables).
Why 0.3.0: the three things that change what the port is on the Retroid Pocket G2 are in: Uncharted 3's market chase holds the 30 FPS limit, the Adreno 735's GPU faults are closed by the driver's workarounds, and the bundled driver renders the games on the Adreno 8xx phones. Our numbers are not uncharted_pc's: this is uncharted-android 0.3.0 on top of uncharted_pc 0.3.11.
Faster and smoother
- The game's job workers no longer hold the CPU cores the port needs. The engine's six worker threads spin for up to 1000
pauses between looking for work; on ARM apauseis awfeof about 100 us, so each worker kept its core for about 100 ms after every job and the port's command thread, which shares the big cores with them, was preempted dozens of times a frame. Now they wait after 2 spins (with a 1 ms timeout instead of 10), and a resumed job wakes a sleeping worker at once (the engine's resume paths never did). On the G2: Uncharted 3's market chase 25.4 -> 30.1 FPS without the limit and 27.3 -> 29.7 at the 30 limit, with far fewer long frames (the 99th percentile frame 64 -> 42 ms); Uncharted 1 41 -> 43 FPS without the limit, and its frames over 40 ms went from about 630 to about 10 in two minutes - the hitches at the 30 limit are gone.BB_JOB_SPINS=0andBB_JOB_RESUME_WAKE=0in More environment bring the old behaviour back (one run of Uncharted 1 at the limit showed a GPU fault storm with the new defaults that 75 minutes of the same scene did not repeat; if your game freezes for seconds at a time, try them and tell us).
Fixed
- Snapdragon 8 Elite, 8 Elite Gen 5 and 8s Gen 4 phones (Adreno 8xx): the bundled driver now runs the game (#1, #8, #20, #22). Two rules of the bundled Turnip, made for the Adreno 735 of the Retroid Pocket G2, broke the newer GPUs: command buffers placed below 4 GB (the 8xx's command processor stalls on them: GPU timeouts every few seconds, effects taking 20-300 ms a frame, the device lost when a level loads) and tiled (GMEM) rendering, which hangs the Adreno 825 either way. On the 8xx the first rule is off now and the driver renders straight to memory. Measured on a Nothing Phone 3 (Adreno 825): Uncharted 1's boat fight at 47-58 FPS without the limit and no hang in ten minutes, Uncharted 3's pub brawl at 38-45 FPS - the scenes that crawled at 2-16 FPS and lost the device within a minute before. The Adreno 830 and 840 get the same change; they are untested here, reports welcome. StevenMXZ's Gen8 packages are no longer needed for these phones (they lose the device at level loads in this port, which recovers from such faults only with its own driver).
- Ghosts of moving characters with FSR 3.1: characters were blended with their previous places for a few frames. The launcher had turned the game's motion vectors for objects off to save time; they cost nothing measurable, so they are on again (an older setting of
object_motion=0inbbport.iniis reset once). - The game stays landscape on phones: the window asked Android for the user's orientation and turned portrait with the phone.
- Phones with newer Qualcomm graphics memory allocators (the Nothing Phone 3 and the like): the picture is laid out correctly. The driver read the window buffers' layout from the wrong place in their handles and drew a skewed, striped picture.
- The Adreno 825 (Snapdragon 8s Gen 4) is recognized by the bundled driver.
Changed
- The app's page redone: a header, one card per topic (Game, Graphics, Vulkan driver, Controls, Advanced, Saves and logs, Updates), the render size, the frame rate limit and the on-screen gamepad as chips with one line of help each, switches for the toggles, the rarely needed settings folded under Advanced, Play at the bottom. The settings, their keys and the files are the same as before.
For developers
BB_JOB_SPINS=<n>(2; 0 = the game's 1000) andBB_JOB_WAIT_US(1000): the job workers' spins before their wait and its timeout;BB_JOB_RESUME_WAKE=0turns the resume wake-up off. Both by byte patterns of the job manager, the same in Uncharted 1 and 3 (Uncharted 2's recipe had 2 spins already).TU_IB_LOW4G=1brings the low-4 GB rule back on the Adreno 8xx;TU_A8XX_GMEM=1lets the driver's autotuner choose tiled rendering there (Mesa patches 0024 and 0025 inandroid/scripts/port-arm64/patches/).BB_OBJECT_MOTION=0turns the objects' motion vectors off again.android/scripts/np3/: the harness used on the phone (adb over Wi-Fi, scripted runs from a save, GPU faults from logcat, backups of the saves and settings around a run);android/scripts/g2/runs/the G2's.android/scripts/port-arm64/patches/experimental/: two Adreno 8xx experiments not in the build (command buffers behind a virtual BO alias with a retired-buffer cache; the community's Adreno 825 tile and cache values, which make tiled rendering run but slower than direct rendering).
Known issues
- Adreno 8xx: tested for a day on one phone (an Adreno 825); the 830 and 840 may behave differently (#20, #22). Please attach
bb-probe.log(Saves and logs > Copy the log) to a report. - Uncharted 2 still moves a little unevenly at the frame rate limit: its view does not follow the game's frame clock.
- Without the frame rate limit the port's command processing is still the limit in Uncharted 3's heaviest places (the market chase at about 30 FPS on the Retroid Pocket G2); Uncharted 2 and 3 without the limit are otherwise held by the game's own work on the CPU. Uncharted 3 without the limit heats a phone fast: keep the 60 limit there.
- The sizes below 1080p need version 1.02 of the executables (#3).
0.2.7 to 0.2.14 offer this release in the app (Update); or install uncharted-android-0.3.0.apk over the previous version (same signing key; settings and saves stay). Building from source: see the README.
Checksums
uncharted-android-0.3.0.apkSHA-256:692a403933163a4597448b212a084a974d605dbcefbf20b9d91a51aa2208def1- Signing certificate SHA-256:
e9f4c3735869e415fbf21647eafb7991b05d6e926f9daf0eea0f88fc3e7bc60b