moq-video: WGC delivers up to twice the asked frame rate

オープン
#10,332 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.rs paces new frames with Pace, 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)

主要言語
Rust
スター
1.6k
フォーク
251
平均マージ
10時間 10分
マージ済み PR(30日)
832

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

moq-dev/moq のほかの issue

moq-dev/moq の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。