Repository navigation
What's Changed
Added
- Added the performance guide (日本語), which explains the memory, CPU and GPU cost of recording and how the encoding options affect it. It is linked from the memory usage section of the README.
Changed
- The in-memory buffer now stores encoded frames in fixed-size chunks that are shared by video and audio, so that the managed memory it uses stays close to
MaxMemoryUsageBytesForCompressedFrames. Previously the managed heap grew by about 1.75 times the limit. On a Galaxy S22 with the default limit (20 MiB), the growth of the managed heap while the buffer was full decreased from about 36 MB to about 23 MB. - A single encoded frame larger than the memory limit is now dropped with a warning instead of being kept.
- A
MaxMemoryUsageBytesForCompressedFramesof zero or less now throwsArgumentOutOfRangeException. CapturedReplayreturned byStopAndCaptureAsyncon a session with the in-memory buffer now holds the whole buffer, up to the memory limit, instead of only the captured range.- Reduced the CPU usage of recording on Android. On a Galaxy S22 with the default options, the CPU time of the native encoding library decreased from about 195 ms/s to about 120 ms/s.
Fixed
- Fixed the memory of a session that had been exported remaining on the managed heap after the session was disposed. On a Galaxy S22, about 35 MB (about 104 MB with a memory limit of 60 MiB) remained even after
GC.Collect(). - Fixed
StopAndExportAsyncstalling the main thread for about 100 ms on Android when using the in-memory buffer. - Fixed the audio input of the Android encoder possibly waiting indefinitely when a session was disposed before the encoder finished.
PRs
- Add a report on storage writes of the disk buffer on mobile devices by @ruccho in #197
- Release the memory held by pooled native callback contexts after a session is disposed by @ruccho in #198
- Stop exporting from stalling the main thread for about 100 ms by @ruccho in #199
- Keep the managed memory of the in-memory buffer within the configured limit by @ruccho in #200
- Reduce the CPU usage of the Android encoder by @ruccho in #201
- Add a performance guide by @ruccho in #202
- bump to v1.7.1 by @ruccho in #203
Full Changelog: v1.7.0...v1.7.1