Skip to content

Reduce macOS capture startup latency#55

Merged
yvette-carlisle merged 4 commits into
mainfrom
perf/capture-startup-latency
Apr 4, 2026
Merged

Reduce macOS capture startup latency#55
yvette-carlisle merged 4 commits into
mainfrom
perf/capture-startup-latency

Conversation

@yvette-carlisle
Copy link
Copy Markdown
Member

Summary

  • cut macOS capture cold-start latency by switching ScreenCaptureKit shareable-content loading to the on-screen-only path
  • stop blocking first paint on startup live RGB seeding and defer loupe/toolbar/scroll preview window creation until after the first overlay frame
  • keep deferred startup work session-safe with a generation-scoped wake path and retain only the higher-signal startup timing logs

Verification

  • cargo make fmt-rust
  • cargo test -p rsnap-overlay overlay:: --lib
  • cargo build --release -p rsnap
  • git diff --check

…educe macos capture startup latency","intent":"shrink the time from Capture activation to the first visible overlay by removing unnecessary startup work from the critical path and narrowing ScreenCaptureKit setup overhead","impact":"capture now brings up the overlay and HUD in a few dozen milliseconds on macOS, defers auxiliary windows until after first paint, avoids blocking on startup live RGB sampling, and uses the faster on-screen shareable-content path with safer self-capture filter fallback behavior","breaking":false,"risk":"medium","refs":[]}
…pair startup perf lane lint violations","intent":"bring the capture-startup latency branch back into repo lint compliance after the performance refactor pushed several startup paths past workspace style limits","impact":"extracts startup helpers and normalizes style so the macOS capture startup latency improvements still pass cargo make lint and the existing verification path","breaking":false,"risk":"low","refs":[]}
… overlay exit import","intent":"repair the Linux Rust checks failure by only importing OverlayExit on the macOS code path that uses it","impact":"keeps the startup latency branch lint-clean across platforms without changing runtime behavior","breaking":false,"risk":"low","refs":[]}
@yvette-carlisle
Copy link
Copy Markdown
Member Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d87156849b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/rsnap-overlay/src/overlay/window_runtime.rs
…fresh live filters after deferred aux windows","intent":"repair the startup latency branch after review found that deferred loupe, toolbar, and scroll-preview creation could leave fallback ScreenCaptureKit filters blind to newly created rsnap windows","impact":"rebuilds active self-capture filters once deferred aux windows exist and adds a regression test covering the post-startup refresh path so fallback live streams do not capture auxiliary overlay windows","breaking":false,"risk":"low","refs":[]}
@yvette-carlisle
Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@yvette-carlisle yvette-carlisle added this pull request to the merge queue Apr 4, 2026
Merged via the queue into main with commit 3500321 Apr 4, 2026
7 checks passed
@yvette-carlisle yvette-carlisle deleted the perf/capture-startup-latency branch April 4, 2026 12:42
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