Skip to content

Cherry pick PR #9145: media: Optimize Mojo IPC via batched sample writes in StarboardRenderer#9271

Draft
cobalt-github-releaser-bot wants to merge 2 commits intomainfrom
cherry-pick-main-9145
Draft

Cherry pick PR #9145: media: Optimize Mojo IPC via batched sample writes in StarboardRenderer#9271
cobalt-github-releaser-bot wants to merge 2 commits intomainfrom
cherry-pick-main-9145

Conversation

@cobalt-github-releaser-bot
Copy link
Collaborator

Refer to the original PR: #9145

Refactor StarboardRenderer to support batched sample writes. This improves the efficiency of Mojo IPC between the Renderer and player_worker by reducing the overhead of high-frequency individual packet transfers.

Batching allows the renderer to "burst" data through the IPC layer whenever the thread has control. This reduces the pipeline's sensitivity to Renderer thread contention, ensuring a more stable data flow and decreasing the risk of playback being impacted by transient thread starvation or hangs.

Issue: 375674101

…er (#9145)

Refactor StarboardRenderer to support batched sample writes. This
improves the efficiency of Mojo IPC between the Renderer and
player_worker by reducing the overhead of high-frequency individual
packet transfers.

Batching allows the renderer to "burst" data through the IPC layer
whenever the thread has control. This reduces the pipeline's sensitivity
to Renderer thread contention, ensuring a more stable data flow and
decreasing the risk of playback being impacted by transient thread
starvation or hangs.

Issue: 375674101
(cherry picked from commit f6754c0)
@cobalt-github-releaser-bot
Copy link
Collaborator Author

MERGE CONFLICT CAT

Caution

There were merge conflicts while cherry picking! Check out cherry-pick-main-9145 and fix the conflicts before proceeding. Check the log at https://github.com/youtube/cobalt/actions/runs/22450794750 for details.

@github-actions
Copy link
Contributor

🤖 Gemini Suggested Commit Message


media: Optimize IPC with batched sample writes

Refactor StarboardRenderer to support writing multiple samples at once.
This improves Mojo IPC efficiency between the Renderer and player_worker
by reducing the overhead of high-frequency individual transfers.

Batching allows the renderer to "burst" data through the IPC layer
whenever the thread has control. This reduces the pipeline's
sensitivity to Renderer thread contention, ensuring a more stable data
flow and decreasing the risk of playback being impacted by transient
thread starvation or hangs.

Bug: 375674101

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message

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.

2 participants