Search Unity

Performance Analysis Of Onupdate

Discussion in 'Entity Component System' started by sstrong, Apr 11, 2019.

  1. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    2,255
    What is the correct method for determining a bottleneck in an OnUpdate event?

    upload_2019-4-11_15-58-54.png

    The above is profiler in the editor with Deep Profile enables so actual numbers are less. How can I drill into OnUpdate?

    In the editor with Profiler off, Job Debugger off, and Leak detection off, after about 5000 entities the frame rate really starts to drop. However, in a build, even after 25,000 entities the frame rate is still solid at 60fps. And that's without Burst.
     
    Last edited: Apr 11, 2019