Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

cptpcrd
Copy link
Contributor

@cptpcrd cptpcrd commented Mar 19, 2025

Description of Change

When using the SCK thumbnail capturer, the first refresh has the list of sources, and the second refresh has the thumbnails. If thumbnails are not needed, only wait for the first refresh.

Capturing the thumbnails is slow, so this typically saves several hundred milliseconds.

Context: #41328, #41340

Checklist

Release Notes

Notes: Improved performance of desktopCapturer.getSources when not requesting thumbnails on macOS.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Mar 19, 2025
@codebytere codebytere added the semver/patch backwards-compatible bug fixes label Mar 20, 2025
When using the SCK thumbnail capturer, the first refresh has the list of
sources, and the second refresh has the thumbnails. If thumbnails are
not needed, only wait for the first refresh.
@cptpcrd cptpcrd force-pushed the macos-thumbnail-capturer-speed branch from c183fce to 07392d7 Compare March 20, 2025 12:34
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Mar 20, 2025
@codebytere codebytere added target/34-x-y PR should also be added to the "34-x-y" branch. target/35-x-y PR should also be added to the "35-x-y" branch. target/36-x-y PR should also be added to the "36-x-y" branch. labels Mar 25, 2025
@codebytere codebytere merged commit cf82c32 into electron:main Mar 25, 2025
64 checks passed
@release-clerk
Copy link

release-clerk bot commented Mar 25, 2025

Release Notes Persisted

Improved performance of desktopCapturer.getSources when not requesting thumbnails on macOS.

@trop
Copy link
Contributor

trop bot commented Mar 25, 2025

I have automatically backported this PR to "35-x-y", please check out #46249

@trop
Copy link
Contributor

trop bot commented Mar 25, 2025

I have automatically backported this PR to "34-x-y", please check out #46250

@trop trop bot removed the target/35-x-y PR should also be added to the "35-x-y" branch. label Mar 25, 2025
@trop
Copy link
Contributor

trop bot commented Mar 25, 2025

I have automatically backported this PR to "36-x-y", please check out #46251

@trop trop bot added in-flight/34-x-y in-flight/36-x-y merged/35-x-y PR was merged to the "35-x-y" branch. merged/36-x-y PR was merged to the "36-x-y" branch. and removed target/34-x-y PR should also be added to the "34-x-y" branch. target/36-x-y PR should also be added to the "36-x-y" branch. in-flight/35-x-y in-flight/36-x-y labels Mar 25, 2025
@trop trop bot added merged/34-x-y PR was merged to the "34-x-y" branch. and removed in-flight/34-x-y labels Mar 25, 2025
kigh-ota pushed a commit to kigh-ota/electron that referenced this pull request Sep 30, 2025
…lectron#46138)

When using the SCK thumbnail capturer, the first refresh has the list of
sources, and the second refresh has the thumbnails. If thumbnails are
not needed, only wait for the first refresh.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/34-x-y PR was merged to the "34-x-y" branch. merged/35-x-y PR was merged to the "35-x-y" branch. merged/36-x-y PR was merged to the "36-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.