- --perf-log CSV + logcat telemetry (perf_log.h, EterBase/PerfCounters.h), incl. display refresh rate / app vsync rate, thermal, CPU clocks; tools/pull_perf_logs.sh + tools/perf_summary.py - Vulkan renderer: two frames in flight, in-frame texture uploads (no vkQueueWaitIdle), --fps-cap / --refresh-rate / --frames-in-flight - Android: ANativeWindow_setFrameRate, ADPF performance hint, appCategory=game (ColorOS no longer drops to 60 Hz when idle) - Character shadow map rendered on the GPU into an offscreen render target instead of CPU rasterization + per-frame 1 MB upload; --cpu-shadow keeps the old path. Device (120 Hz, 32 mobs): 75 -> ~115 fps, script thread 8.9 -> 3.4 ms. draw_capture format v10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
552 B
Bash
Executable File
12 lines
552 B
Bash
Executable File
#!/bin/sh
|
|
# Copies the Android client's --perf-log files (native_render/perf_log.h) to ./perf-logs and prints a
|
|
# summary of the newest one. The phone must be connected with USB debugging; the files can also be
|
|
# taken off the phone without a PC from Android/data/org.metin2port.client/files/perf.
|
|
set -e
|
|
PKG=org.metin2port.client
|
|
OUT=${1:-perf-logs}
|
|
mkdir -p "$OUT"
|
|
adb pull "/sdcard/Android/data/$PKG/files/perf/." "$OUT"
|
|
newest=$(ls -t "$OUT"/perf-*.csv 2>/dev/null | head -1)
|
|
[ -n "$newest" ] && python3 "$(dirname "$0")/perf_summary.py" "$newest"
|