-
-
Notifications
You must be signed in to change notification settings - Fork 346
Assess and improve session replay performance using camera view finder #4883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We have one customer reporting performance issue with camera view finder in their app using SDK 8.41.0. They didn't yet update to 8.43.0, which is the first SDK release where SR is GA. So we should try to reproduce with both/current SDK version. |
Also to test whether the performance improvement shipped with the experimental view renderer in 8.47.0 affects this issue |
I created a sample app in #5055 to verify the behaviour with an orange background, a label "Background" and a preview view on top of the label. This is what the screen looked like: ![]() With https://sentry-sdks.sentry.io/explore/replays/28d11e2f3f394a57a46aca12fb3937b6/ With https://sentry-sdks.sentry.io/explore/replays/365ced0a9ff34025a136834e43c48caa/ It seems like we are not able to render the preview layer using either of the render methods. Regarding the performance: At least on an iPhone 14 Pro I could not see any difference in performance between using the experimental view renderer or not. We might have to perform additional testing on older devices and more complex view hierarchies. EDIT: |
To increase confidence I'd like to run some simple tests on an iPhone 8, like we did for #4940.
That's fair, we should add a note on the docs. |
I did additional testing with an iPhone 8 using the sample app that will be merged with #5055. Visually there is no difference noticeable, but Xcode instruments show that the new experimental view renderer has actually more app hangs than without: Experimental View Renderer: Default View Renderer:
EDIT: After reviewing the performance tests again it is now visible that there is a clear performance boost reducing view render time from ~157ms to ~40ms |
Closing this issue because the improvements of the experimental view renderer reduced visible lag using the camera view finder. |
For future reference, the reason why the initial performance analysis did not show any app hangs when changing the flags was actually a bug, see #5069 |
Description
The text was updated successfully, but these errors were encountered: