Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Unity Analytics contributes to ANR (2020.3)

Discussion in 'Unity Analytics' started by AntonPetrov, Dec 14, 2023.

  1. AntonPetrov


    Dec 27, 2013
    Dear Unity,

    We have examined our native stack traces during ANR intervals and we see Unity spends a lot of time in the analytics code. Most questionable thing is writing files (see
    ) from

    Probably you know that Unity blocks main thread and waits for UnityMain thread to synchronize. I think doing IO from activity lifetime events like Pause is begging for ANRs.

    You should reconsider your analytics implementation and move everything to background threads.

    Thank you!