mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 15:00:30 +02:00
The size check in retro_serialize measured the state separately before MeasureAndSavePtr measured it again, a third DoState pass on every save, which rewind and run-ahead do every frame. MeasureAndSavePtr now takes the capacity of a caller-provided buffer and fails after its own measure pass if the state doesn't fit. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>