sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Low overhead session replay with runloop observers

Open noahsmartin opened this issue 1 month ago • 1 comments

Session reply uses a display link to decide when to capture a new frame, this leads to high overhead because even when the UI is not changing session replay is recording a frame. A lower overhead session replay would:

  • Only capture a new frame on a new iteration of the run loop. UI is almost only updated from the main run loop, It is possible to have an animation rendering by Core Animation that doesn't use the main runloop.
  • Disable recording when the run loop is in interactive mode, to prevent any overhead when scrolling that risks causing frame drops

noahsmartin avatar Nov 24 '25 20:11 noahsmartin

COCOA-1017

linear[bot] avatar Nov 24 '25 20:11 linear[bot]