Skip to content

v2.1.5: Fix ~1s delay on snap/fullscreen copy/pin

Choose a tag to compare

@sw33tLie sw33tLie released this 15 Mar 21:14
· 874 commits to main since this release

Fixed

  • ~1 s delay on snap/fullscreen confirm — copying, saving, or pinning a window-snap or full-screen (F key) selection was stalling the main thread for ~1 second before the screenshot sound played.

Root cause: SCScreenshotManager.captureImage returns an IOSurface-backed CGImage (GPU memory). The GPU→CPU readback only happens the first time pixels are accessed. For manual drag selections this occurred silently during the drag; for snap/fullscreen the user confirmed before any draw, so the blocking readback hit the main thread at copy/save/pin time.

Fix: Blit the IOSurface CGImage into a CPU-backed CGContext immediately after capture, on the background capture thread, so the readback is complete before the overlay even appears.

Install / upgrade

brew upgrade sw33tlie/macshot/macshot

Or download MacShot.dmg below.