fix(badapple): pace the UDP load at 2 ms per packet

This commit is contained in:
arti committed 2026-11-01 11:06:49 +02:00
1 parent 1d9da7e3cf
commit 6b6bfaf135
1 file changed
+4 -1
+4 -1
View File
@@ -15,6 +15,7 @@ PORT=7001
MOVIE=$ROOT/bad-apple/data/movie.bin
WAIT=180
SETTLE=3
DELAY=0.002
while [ $# -gt 0 ]; do
case "$1" in
@@ -23,6 +24,7 @@ while [ $# -gt 0 ]; do
--movie) MOVIE=$2; shift 2 ;;
--wait) WAIT=$2; shift 2 ;;
--settle) SETTLE=$2; shift 2 ;;
--delay) DELAY=$2; shift 2 ;;
-h|--help) sed -n '2,12p' "$0"; exit 0 ;;
*) echo "load.sh: unknown option $1" >&2; exit 2 ;;
esac
@@ -48,5 +50,6 @@ python3 "$ROOT/harness/badapple/rdebug_load.py" \
--env "$ROOT/bad-apple/player/build/player-net.env"
sleep "$SETTLE"
python3 "$HERE/send_movie.py" --host "$HOST" --port "$PORT" --movie "$MOVIE"
python3 "$HERE/send_movie.py" --host "$HOST" --port "$PORT" --movie "$MOVIE" \
--delay "$DELAY"
echo "load.sh: sent; the screen is the evidence. Power-cycle to recover."