Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: manual snapshot in rAF loop (#210)
## Background I followed [Set Up Session Replay | Sentry for Javascript](https://docs.sentry.io/platforms/javascript/session-replay/#3d-and-webgl-canvases) and got CPU high usage.  ## Solution The takeCanvasSnapshots should not be in rAF loop when the `isManualSnapshot` is true. I also checked the [rrweb/packages/rrweb/src/record/observers/canvas/canvas-manager.ts at master · rrweb-io/rrweb](https://github.com/rrweb-io/rrweb/blob/master/packages/rrweb/src/record/observers/canvas/canvas-manager.ts#L172) and confirmed it's Sentry customized logic. Co-authored-by: Billy Vong <[email protected]>
- Loading branch information