Skip to content
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

feat: Collect MainThreadData before initial scene load #1802

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

bitsandfoxes
Copy link
Contributor

Initially, we deferred the collection of MainThreadData into our MonoBehaviour's Awake call. Since that data does not change at runtime, fetching it doesn't impose any performance impact (we were just doing it at a later point) we can rely on the [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] attribute. That way we have the data available right after initialization and irrespective whether an error gets captured on the main/UI or a background thread.

Copy link
Contributor

github-actions bot commented Sep 12, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against e2f4bc5

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

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

makes sense

@bitsandfoxes bitsandfoxes merged commit d051704 into main Sep 12, 2024
120 checks passed
@bitsandfoxes bitsandfoxes deleted the feat/mainthreaddata branch September 12, 2024 20:49
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.

2 participants