Search Unity

Bug Unity2021.3.3 has high cpu usage in play mode

Discussion in 'Editor & General Support' started by t_ree, Jun 28, 2022.

  1. t_ree

    t_ree

    Joined:
    Mar 11, 2019
    Posts:
    4
    the Unity editor has normal performance in edit mode, but has high cpu usage in debug mode. I test my game play after build, it only cost 3% ~ 6% cpu,the cpu usage in debug mode is 35%~40%, the profile window shows that 90% of cpu performance has cost on Editor.Loop shown below.
    QQ截图20220629024815.png
    I used Odin for editor extension, DoTween for transition, TexturePackerImport for sprite package and nothing else.
    anyone has idea about this? thank you first
     
  2. t_ree

    t_ree

    Joined:
    Mar 11, 2019
    Posts:
    4
    this problem not occurs in Unity2019.4
     
  3. Julian-Unity3D

    Julian-Unity3D

    Unity Technologies

    Joined:
    Apr 28, 2022
    Posts:
    192
    Hi @t_ree,

    What you're experiencing is actually normal, the EditorLoop is everything that's happening in the editor, not just with your game. You will often notice that the time it takes is longer than your PlayerLoop.
    The PlayerLoop is roughly your game performance.

    Ideally you want to be profiling your application on the target device.
    You can read more about how to profile your application here: Unity - Manual: Profiling your application (unity3d.com)
     
  4. t_ree

    t_ree

    Joined:
    Mar 11, 2019
    Posts:
    4
    Thank you for reply, It's not a big problem but actually make my cpu fan noise big, maybe version 2019.4 is a better choice for now.
     
    wmadwand likes this.