Repository navigation
uncharted-android 0.2.12
Pre-release
Pre-release
Still experimental; no game files are included, you need your own decrypted dump of the collection (version 1.02 of the executables).
Fixed
- Even frames at the frame rate limit, in all three games. At the 30 FPS limit the frames reached the screen unevenly: in Uncharted 1, 13-17% of them stayed up for one or three display refreshes instead of two, because the limiter counted time on the CPU clock, blind to the display's refreshes. Now each frame is presented for a given refresh of the display (VK_GOOGLE_display_timing, from Android's Vulkan loader): 2% of the frames off the even cadence, the frame rate the same. It applies under a limit of a whole number of refreshes a frame (30 on a 60 Hz screen);
BB_PRESENT_PACING=0in More environment brings the old limiter back. - Uncharted 1: the hero no longer jumps forward now and then while running. No frame was missing: the game began its frames 12-70 ms apart behind the even screen and moved its world by those uneven steps. With the frames paced (above), its frame clock now advances by the screen's frame time and catches up with real time gently (
BB_U1_DT_SMOOTH=0turns that off). On a screen recording at the 30 limit the jumps of a refresh's worth went from 418 to 56 a minute. - Uncharted 1: hitches of 70-700 ms about every 15 seconds. The game's idle job workers spun on six of the eight cores, and the worker with the frame's job lost its core for tens of milliseconds. They sleep while idle now (
BB_JOB_SLEEP=0spins as before); Uncharted 2 and 3 keep spinning for now. - Uncharted 1: two rare crashes in the game's job code: the main view's region table read while it was being rebuilt (about one run in 35 here;
BB_U1_VIEW_LOCK=0off), and a scene job meeting an empty node set (BB_U1_SET_GUARD=0off; aSet job guardline in the log tells when that happened). - Uncharted 2 and 3 started from the collection's menu kept the status bar on some devices, and the swipe in from the right edge for the settings panel went to the system's back gesture (#24, #11). The game's window hides the system bars whenever it gets the focus, and the middle of the right edge is kept from system gestures.
Changed
- Faster presenting: the Vulkan queue is no longer locked while Android's window takes the frame (that took 3-15 ms a frame, and the next GPU submissions waited for it): Uncharted 3's museum +3 FPS without the frame limit (+9%), no loss elsewhere (
BB_PRESENT_UNLOCK=0off). - With the frame limit on, a frame waits for its refresh: about 15-25 ms more from the game's frame to the screen in heavy scenes (Uncharted 1's statue garden: ~40-50 ms against ~26 ms).
BB_PRESENT_PACING=0trades the even frames back for it. - Crash reports in the log name the game's instruction, its registers and its callers when the fault is in the game's translated code.
For developers
- Frame diagnostics:
BB_PRESENT_TRACE=1(aFrame traceline per paced frame: the guest's flip, queued, taken, presented, shown, the present margin),BB_PRESENT_PACING=2(the display cadence statistics without the pacing),BB_PRESENT_PACING_ADAPT=2(a lead rule by the present margins),BB_U1_FRAME_WATCH=1(Uncharted 1's frame starts and its frame clock). - Stall diagnostics:
BB_SUBMIT_STATS=1(the steps of every submission and present, the queue lock's holders),BB_USLEEP_STATS=1,BB_HLE_SLOW_MS=<ms>,BB_SKIP_PRESENT=1(the bound of a free present),BB_PATCH_SKIP=<offsets>(leaves a preset's writes out),BB_U1_VIEW_WATCH=1. - Experiments, off by default:
BB_ORDERED_FAULTS=1,BB_LAZY_RETIRE=1,BB_SCALAR_COPY_AHEAD=1(the command thread's draw pipe barriers taken out; the frame rate did not move),BB_PRESENT_WAIT=1. android/scripts/g2/runs/: scripted runs and interleaved A/Bs on a device over adb;frame_trace.py,timestats.py,motion.py(the picture's motion on a screen recording) and others next to it.
Known issues
- Uncharted 2 and 3 still move a little unevenly at the limit, as Uncharted 1 did (their frame clocks are next).
- Snapdragon 8 Elite / 8 Elite Gen 5 (Adreno 8xx): the bundled driver does not render the game correctly (#1, #8); try the driver packages from Settings > Vulkan driver > Download...
- The sizes below 1080p need version 1.02 of the executables (#3).
0.2.7 to 0.2.11 offer this release in the app (Update); or install uncharted-android-0.2.12.apk over the previous version (same signing key; settings and saves stay). Building from source: see the README.
Checksums
uncharted-android-0.2.12.apkSHA-256:2e051627129925abf8f3eaaf5dfd282458e37e70af4036862d355a9cf278cf34- Signing certificate SHA-256:
e9f4c3735869e415fbf21647eafb7991b05d6e926f9daf0eea0f88fc3e7bc60b