Skip to content

Fix high percentage of slow frames#1915

Merged
philipphofmann merged 5 commits into
masterfrom
fix/frames-tracking
Jun 24, 2022
Merged

Fix high percentage of slow frames#1915
philipphofmann merged 5 commits into
masterfrom
fix/frames-tracking

Conversation

@philipphofmann

@philipphofmann philipphofmann commented Jun 24, 2022

Copy link
Copy Markdown
Member

📜 Description

The SentryFramesTracker didn't handle fps changes from
the CADisplayLink. This is fixed now by calculating the
actual frame rate as pointed out by the docs.

Docs PR getsentry/sentry-docs#5209.

💡 Motivation and Context

Fixes #1881

💚 How did you test it?

Setting preferredframespersecond and running on a real device, real device, unit tests, and UI tests.

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • Review from the native team if needed
  • No breaking changes

🔮 Next steps

@philipphofmann
philipphofmann force-pushed the fix/frames-tracking branch 2 times, most recently from 444a285 to cca4b8f Compare June 24, 2022 09:52
Comment thread Sources/Sentry/SentryFramesTracker.m Outdated
The SentryFramesTracker didn't handle fps changes from
the CADisplayLink. This is fixed now by calculating the
actual frame rate as pointed out by the docs.

Fixes GH-1881, Fixes GH-1165
@philipphofmann
philipphofmann marked this pull request as ready for review June 24, 2022 12:47
@philipphofmann philipphofmann changed the title Fix frames tracking Fix slow frames tracking Jun 24, 2022
@philipphofmann philipphofmann changed the title Fix slow frames tracking Fix high percentage of slow frames Jun 24, 2022
@philipphofmann
philipphofmann requested a review from brustolin June 24, 2022 13:13

@brustolin brustolin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR is Good!
Ready to merge.

I think we could create an UITest that causes slow and frozen frames, and check whether the new labels in the sample were update. But this could be done in another PR.

@philipphofmann

philipphofmann commented Jun 24, 2022

Copy link
Copy Markdown
Member Author

I think we could create an UITest that causes slow and frozen frames, and check whether the new labels in the sample were update. But this could be done in another PR.

Yes, I agree. I added an issue #1917

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

100% slow frame rate for many screens

2 participants