Skip to content

Low overhead session replay with runloop observers #6885

Description

@noahsmartin

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions