You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I've compared the old API against the new one and it's slower.
Turns out the async API is a lie, only the callback gets executed async - but capturing is happening on the calling thread.
See the source for more details.
Surprisingly PixelCopy is also around 20% slower, maybe because it e.g. also draws shadows?
Pixel 6a, Demo App, Release build
Closing this as it doesn't seem to give us any real advantage over ScreenshotUtils.takeScreenshot. Let's see if we can call this API on a background thread, which would be the only advantage then.
Description
Using PixelCopy to create screenshots is likely to provide better performance than the current approach.
See https://developer.android.com/reference/android/view/PixelCopy
The text was updated successfully, but these errors were encountered: