Skip to content

fix(render): keep one frame of PTS headroom - #69

Merged
qiin2333 merged 1 commit into
masterfrom
codex/vsync-slot-scheduler
Jul 21, 2026
Merged

fix(render): keep one frame of PTS headroom#69
qiin2333 merged 1 commit into
masterfrom
codex/vsync-slot-scheduler

Conversation

@qiin2333

Copy link
Copy Markdown
Contributor

改了啥呀

  • PTS 调度初始 lead 明确保留一个完整流帧,再叠加 2 ms 的 RenderService 提交余量
  • 队列容量从提交余量起算,保留原有突发容纳能力,不让一帧储备偷偷吃掉 burst budget
  • 补上 120 FPS 解码抖动、刷新率分档和重锚行为测试

为啥要改

解码后的短时抖动会让帧错过 VSync 槽,表现成偶发粘滞。现在先准备一帧,让这点杂鱼抖动在上屏前被吸收,同时无 PTS 路径完全不动。

验证

  • presentation_scheduler_test: passed
  • presentation_observability_test: passed
  • hvigor assembleApp --mode project -p product=default -p buildMode=debug --no-daemon: BUILD SUCCESSFUL

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@qiin2333, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 57 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 22761033-fd0a-48d1-9f25-281b515947d9

📥 Commits

Reviewing files that changed from the base of the PR and between 918b0a5 and 4e9c6b7.

📒 Files selected for processing (3)
  • nativelib/src/main/cpp/presentation_scheduler.cpp
  • nativelib/src/main/cpp/presentation_scheduler.h
  • nativelib/src/test/cpp/presentation_scheduler_test.cpp
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/vsync-slot-scheduler

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qiin2333
qiin2333 merged commit baf011c into master Jul 21, 2026
1 of 2 checks passed
@qiin2333
qiin2333 deleted the codex/vsync-slot-scheduler branch July 21, 2026 13:32
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.

1 participant