Skip to content

Copy encoded frames less, cache RTP sources, shorten the transform queue - #258

Merged
MarshalX merged 1 commit into
mainfrom
optimize-rtp-transforms
Oct 16, 2026
Merged

MarshalX merged 1 commit into
mainfrom
optimize-rtp-transforms

Conversation

@MarshalX

Copy link
Copy Markdown
Owner

One-off script, 720p30 video + audio with pass-through transforms on both sides that read frame.data, macOS arm64:

Metric Before After Change
Process CPU 31.6% 27.2% -14%
CPU per transformed frame 1975 µs 1700 µs -14%
getSynchronizationSources() 14.8 µs 1.3 µs -91%

Frame rates are unchanged

@MarshalX
MarshalX merged commit 8a2d7c0 into main Oct 16, 2026
21 of 23 checks passed
@MarshalX
MarshalX deleted the optimize-rtp-transforms branch October 16, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant