You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf: libobs: expose mapped staging memory as the video-io cache frame #3202
libobs/obs-video.c.h:600-657 memcpys the mapped readback into the cache frame for every CPU-encoder output (about 1 ms per frame at 4K NV12).
Proposed change
Let video_output_lock_frame hand out the staging pointers and delay the unmap until the frame is released. Effort L; do it together with the async-upload sub-issue.
Acceptance criteria
Before/after numbers (a bench running the real copy plan at 1080p and 4K) in the PR; nothing lands unmeasured.
RED then GREEN; Tier 3 parity stays bit-exact unless this issue says otherwise.
Found by a read-only code scout and not yet measured. Parent: #3176.
The shared frame-lifetime design (a staging slot pool in libobs-graphics, with a fallback when a backend lacks it) is written down on #3201: #3201 (comment). This issue is its step 3. #3200 folds into the same read pool.
Activity
zackees commentedon Oct 31, 2026
/investigate needs the shared frame-lifetime design with #3201 written down (overlaps #3201) before either can be specified and sized.
zackees commentedon Nov 1, 2026
The shared frame-lifetime design (a staging slot pool in libobs-graphics, with a fallback when a backend lacks it) is written down on #3201: #3201 (comment). This issue is its step 3. #3200 folds into the same read pool.