Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

EventSystem.Update() takes up 90% of CPU - Profiler Data Help

Discussion in 'Editor & General Support' started by Geads, Aug 27, 2018.

  1. Geads

    Geads

    Joined:
    Aug 24, 2017
    Posts:
    45
    UnityProfilerHelp.PNG

    When I click a button to change scenes my game freezes for a split second and the profiler spikes up to 209 ms before coming back down. Does anyone know what might be causing this? I googled relentlessly for EventSystem.Update() but have found very few posts that pertain to me. I'm getting 470 calls of GC.Alloc and I'm not sure why.

    Edit: The EventSytem.Update() causes this slowdown if i touch anywhere on the screen for the 1st time, it has nothing to do with the button. After the 1st time it never happens again. How can I fix this?
     
    Last edited: Aug 27, 2018