-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Increase SCK queue depth to avoid timeouts #1344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughIncreased video buffer channel from 4 to 12 and added dynamic queue depth computation: queue_depth = ceil((fps / 30) * 5), clamped to [3, 8], logged and passed into stream configuration via a new with_queue_depth(...) builder call. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Init as Initializer
participant Mac as macOS capture
participant Cfg as StreamCfgBuilder
participant Stream as Stream
Init->>Mac: start screen capture (fps)
note right of Mac `#D3E4CD`: compute queue_depth = ceil((fps/30)*5)\nclamp to [3,8]
Mac->>Cfg: with_queue_depth(queue_depth)
Cfg->>Stream: build & start stream (with queue depth)
Stream-->>Mac: stream running
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used📓 Path-based instructions (2)**/*.rs📄 CodeRabbit inference engine (AGENTS.md)
Files:
crates/*/src/**/*📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (2)📚 Learning: 2025-10-28T08:39:42.230ZApplied to files:
📚 Learning: 2025-10-17T05:58:22.586ZApplied to files:
🧬 Code graph analysis (1)crates/recording/src/sources/screen_capture/macos.rs (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This will hopefully mitigate some of the 'Stream was stopped by the system' SCK errors, though due to the lack of information in those errors it could have no effect at all.
Summary by CodeRabbit