Avoid rebuilding mipmaps for mirrored Android frames

This commit is contained in:
Kurt Himebauch committed 2026-12-06 09:02:44 -05:00
1 parent f80be06061
commit 3fb6abe27b
1 file changed
+2 -1
@@ -49,8 +49,9 @@ connected || connected ||
output=$(mktemp)
export SDL_VIDEODRIVER=x11
# Android plays audio on the handheld. Capturing it here would feed it back into Android again.
# Skip rebuilding the OpenGL mipmap chain for every mirrored frame.
scrcpy --serial "$serial" --new-display=1280x720/240 --start-app="$package" \
--window-title="Android app" --no-vd-system-decorations --no-clipboard-autosync --no-mouse-hover \
--mouse-bind=----:---- --gamepad=uhid --no-audio --max-fps=60 9>&- 2>&1 | tee "$output" ||
--mouse-bind=----:---- --gamepad=uhid --no-audio --no-mipmaps --max-fps=60 9>&- 2>&1 | tee "$output" ||
grep -Fq '[server] INFO: DroidDeck Android shortcut ended' "$output" ||
fail "The Android app window closed unexpectedly. Try launching it again."