92b5ef16cb
- LaunchTheme/NormalTheme on #05070A (was the stock light theme + white windowBackground) and the Android 12 splash API in values-v31 - splash icon is a padded 512x512 canvas: Android masks everything outside the inner 192dp of the 288dp icon area, which clipped the wordmark at the top; the icon plate is set to the icon navy - Flutter splash (lib/src/ui/splash_screen.dart): logo pulses (scale 0.96-1.04, opacity 0.72-1.0, 1100 ms) plus a thin progress line, min 700 ms measured from the first Flutter frame - boot work (session, FFI library, ad SDK) now runs after the first frame and the game fades in over the splash: no blocking work before the first frame - numbers (Redmi Note 10, API 31): debug 3053 ms, profile/AOT 2040 ms on the first start, 850-960 ms on later cold starts, ready log ~1030 ms - fixed: top-level Stopwatch only started on first access (Dart lazily initialises top-level finals), so the boot log always showed 0 ms - tools/device/startup.sh measures cold start + boot log; testing.md documents the splash chain and the MIUI release-install trap
31 lines
1.1 KiB
Bash
Executable File
31 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Cold-start measurement: time to first frame plus the in-app boot log.
|
|
#
|
|
# `am start -W` measures until the activity is idle. That number is polluted by
|
|
# the Google UMP consent form (a second window), so run this only *after*
|
|
# consent has been given once - otherwise TotalTime includes the dialog.
|
|
#
|
|
# Usage: tools/device/startup.sh [runs] (default 3)
|
|
set -euo pipefail
|
|
ADB=${ADB:-adb}
|
|
PKG=${PKG:-de.softwareapp_hb.ironarc}
|
|
ACT=${ACT:-.MainActivity}
|
|
RUNS=${1:-3}
|
|
|
|
echo "## Kaltstart ($RUNS Laeufe, $PKG)"
|
|
for i in $(seq 1 "$RUNS"); do
|
|
$ADB shell am force-stop "$PKG"
|
|
sleep 2
|
|
$ADB logcat -c
|
|
total=$($ADB shell am start -W -n "$PKG/$ACT" 2>/dev/null \
|
|
| tr -d '\r' | awk '/TotalTime/ {print $2}')
|
|
sleep 2
|
|
ready=$($ADB logcat -d 2>/dev/null | tr -d '\r' \
|
|
| grep -oE 'iron_arc: ready after [0-9]+ ms' | tail -1)
|
|
echo " Lauf $i: TotalTime ${total:-?} ms | ${ready:-kein Bootlog (Release ohne Log?)}"
|
|
done
|
|
|
|
echo
|
|
echo "Richtwerte (Redmi Note 10, Android 12): Debug ~3050 ms, Profile/AOT ~2040 ms."
|
|
echo "Splash-Kette: nativer Splash -> Flutter-Splash (Puls, min. 700 ms) -> Fade in die Partie."
|