Skip to content

Set event processing timeout based on render buffer duration - #1001

Open
sbooth wants to merge 1 commit into
mainfrom
poll-interval
Open

sbooth wants to merge 1 commit into
mainfrom
poll-interval

Conversation

@sbooth

@sbooth sbooth commented Sep 13, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings September 13, 2026 14:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review issues remain.

Pull request overview

Updates event-thread polling to follow the audio render buffer duration while retaining bounded and idle timeouts.

Changes:

  • Stores the latest render duration atomically.
  • Uses a clamped 2–10 ms active timeout.
  • Preserves the 500 ms idle timeout.
File summaries
File Description
Sources/CSFBAudioEngine/Player/AudioPlayer.mm Captures render duration and derives the event polling timeout.
Sources/CSFBAudioEngine/Player/AudioPlayer.h Adds atomic render-duration storage.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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