mirror of
https://github.com/stablyai/orca.git
synced 2026-11-04 02:57:36 +00:00
* perf(emulator): accumulate MJPEG chunks instead of re-joining partial frames A simulator frame spans many socket chunks, and extractJpegFrames re-concatenated the growing partial frame on every chunk, which is quadratic in chunks per frame on the Electron main thread. Hold chunks until one could complete the frame, then join once. Held chunks are copied, so no caller chunk memory is retained. * perf(emulator): ignore empty MJPEG chunks in the accumulator --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>