moq-video: WGC delivers up to twice the asked frame rate
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 58/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust
- Domain
- audio-video-rtc
Research direction
Read rs/moq-video/src/capture/win32.rs, wgc/native.rs, and capture/channel.rs to trace how Pace and FrameChannel::repeating schedule frames. Start by reproducing the reported 1 fps case with changing desktop content, then add a mocked clock or Xvfb test to verify the stream stays within its requested rate when a new frame and repeat are due together.
Written by the indexing model from the issue text.
Description
A Windows Graphics Capture stream asked for 1 fps delivers about 1.5 fps: windows_picture_cost (rs/moq-video/src/capture/win32.rs, from https://github.com/moq-dev/moq/pull/10316) read 15 frames in 10 seconds from a 2560x1440 display.
Two independent clocks hand out frames:
wgc/native.rspaces new frames withPace, at most one per interval.FrameChannel::repeating(capture/channel.rs) repeats the held frame once the interval passes without a new one.
Neither knows about the other, so when both come due together, a repeat goes out and the paced new frame follows a moment later. On a desktop that changes now and then (a clock, the cursor), a reader gets up to twice the asked rate.
Fix direction: one clock decides when a frame is due. For example, the channel could treat the next repeat as the next pacing slot, so a new frame takes the repeat's place rather than following it. An Xvfb or unit test with a mocked clock can pin the rate.
(Written by Claude Opus 5.5)
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 251
- Avg merge
- 10h 10m
- Merged PRs (30d)
- 822
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from moq-dev/moq
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
moq-dev/moq#10463 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
moq-dev/moq#10460 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
quest
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
moq-dev/moq#10373 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
quest
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
moq-dev/moq#10336 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
lbjlaq/Antigravity-Manager#4180 ·
Maintainers usually reply within 1 day
-
bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zizmorcore/zizmor#2608 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
longbridge/nsh#4201 ·
Maintainers usually reply within 1 day