Files
nessarandClaude Opus 5.5 f31081b25d Add a window move probe and a production build script (#17)
scripts/move-probe.ps1 moves a window 240 times per second without
touching the mouse and measures how long each move holds its UI thread,
with an idle phase first; it prints the machine and build it measured.
scripts/prod build|run is scripts/win with --release: the optimised
build, without a console, to use the app and to measure it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:27:15 +01:00

19 lines
555 B
Bash
Executable File

#!/usr/bin/env bash
# Builds or runs Arena Tracker in production mode (optimised release build, no console window),
# with the Windows toolchain like scripts/win. Debug builds are unoptimised and too slow to judge
# smoothness (issue #17): use this one to use the app or measure it.
set -euo pipefail
usage() {
echo "Usage : scripts/prod <build|run> [arguments cargo...]" >&2
exit 2
}
[ $# -ge 1 ] || usage
case "$1" in
build | run) ;;
*) usage ;;
esac
exec "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/win" "$1" --release "${@:2}"