Which step fails In game (Android). Playable, but the frame rate is below the 30 fps target even on the lowest settings, with hitches while moving.
Your setup
- Computer and OS: Windows (used only for adb logcat)
- Xcode version: n/a
- Phone model and Android version: Poco X7 (global; Dimensity 7300-Ultra / Mali-G615 MC2 per the phone's specs, the log starts after boot so the GPU name line is not in it), HyperOS [3.0.305.0], [12] GB RAM
- Signing: n/a (Android APK)
- Version: Android build v2.3.0
Output of ./setup.sh check
n/a (Android)
What happened
Settings: Custom > Power saver (30 fps) ON, 3D resolution 60% (log shows 3D 0.60), smoothness first. Xiaomi Game Turbo + performance mode ON: no change.
Measurements from the attached log (adb logcat -s dm, ~4.8 min, v2.3.0):
- GPU time is above the 33 ms budget even in the main menu / character select: GPU p50 38-40 ms (p95 ~40-41), frame p50 ~40 ms, ~1100 draws/frame, the brighten pass idle (k=1.00).
[perf]line: thermal -1, 3D 0.60, fps 24.9, tiers 0/0/249, dropped 0. In town (area 1): GPU p50 39-48 ms, frame p50 36-66 ms, p95 up to 117 ms. - The GPU has no native BC:
bc_native=0 bc_decoded=2620 live_images=694MB bc_images=559MB bc_payload=143MB, footprint 2061 MiB. - Hitches when moving: when the character stands still it is steady, when moving into new areas it hitches (my observation). In-game
[长帧]lines: 319 long frames; by my classification 135 GPU-only, 88 texture-upload + GPU, 68 texture-upload only. 158 frames with first-time texture uploads, ~5.4 s total upload time in ~140 s of play; worst case 207 ms (78 first uploads, 89 MB). One 1369 ms hitch on an area change (GPU 16.6 ms, upload 10.6 ms), probably loading. - Shader pipelines are not the problem:
warm_built=1905 warm_failed=0, only 2 long frames with new pipelines (~228 ms in total).
Other note: Necromancer summoner build; lag disappears when standing still even with many minions and debuffs on screen, and returns as soon as the character moves.
Questions / suggestions
- Is ~25 fps at 3D 60% expected on Mali-G615 MC2? Could there be a Mali-specific default, or a way to go below 60% 3D scale / lower the output resolution? (related: #242)
- Since the GPU has no BC, could textures be transcoded offline to ASTC (like the iOS Legacy Device Pack; the engine already maps NVN ASTC formats), or at least decoded off the render path / multi-threaded (DM_BC_THREADS)? docs/android-notes/2026-10-20-main-fixes.md says Android has no ASTC pack.
- On a release APK, how can a user set env values such as DM_ANDROID_RES, DM_3D_SCALE_GPU, DM_PACE_ADAPT or DM_BC_THREADS?
dm/envis read from the internal files dir, which is not reachable without root or a debuggable build.
Log
Attached: d2r_poco_x7_v2.3.0_log.txt (adb logcat -s dm; started after launch, so the boot lines are not included; converted to UTF-8). It contains only the character name "Hell" and the app's internal path.
Activity
2@sweetcheburechek-eng Thanks for the very thorough log and numbers. Answers as far as we know them:
- ~25 fps on a Mali-G615 MC2: we haven't measured a Mali phone. GPU time is ~39 ms even on the character-select screen, though, so the GPU itself looks like the limit at this resolution. There's no Mali-specific default yet, and the menu can't take the 3D scale below 60%; lower settings and output resolution are what #242 asks for.
- Textures: right, Mali has no BC support, so the app decodes every texture into plain RGBA on the CPU. That's your
bc_decoded=2620 … bc_images=559MB, and it fits both the memory use and the hitches when you walk into new areas. iOS already has an ASTC texture pack for older iPhones without BC (D2RM_ASTC_PACK, see docs/LEGACY_DEVICES.md), but Android doesn't use it yet. Bringing it to Android is the proper fix. - Env values on a release APK: not possible without root. The app reads
envonly from its private folder, and release builds aren't debuggable.
The mercenary observation fits too: aura effects add blended layers on top of a GPU that's already at its limit.
@jhaizhou-ops, would you like Android to get the ASTC texture pack? That means a pack option like iOS's, used when the GPU lacks BC. I can do it and test it on our Adreno phones by forcing the no-BC path.
Extra data point: switching my mercenary from an Act 2 one with a healing aura to one with an attack aura noticeably reduced the lag (Necromancer summoner build, many minions). Maybe the per-unit healing effect is expensive on Mali-G615 (blending/overdraw on top of the GPU-bound ~39 ms frame). I can capture comparison logs with each mercenary in the same scene if useful.