mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
One-shot mode drained the socket for --wait seconds (default 2) and exited, whatever arrived. So every invocation cost two seconds regardless of how fast the answer came, and a slower one got cut off with no indication that it had been. Scripts calling wsdbg in a loop paid that per call. Now that every request is answered, the reply can be matched by ticket the same way the REPL does: return as soon as it arrives, and treat --wait (now 10s) as an upper bound rather than a delay. A cpu.status that used to take 2.0s takes 0.03s. Not getting an answer within the bound is reported and exits non-zero instead of passing silently. --wait-all keeps the old behaviour, for when the point is to watch broadcasts (log lines, gpu.stats.feed) rather than ask a question. --raw without a ticket of its own falls back to it too, since there's nothing to match. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01GZq8ZtJmFY7bkX5FVkr3P9