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>
19 lines
555 B
Bash
Executable File
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}"
|