Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Empty project 50% CPU

Discussion in 'Editor & General Support' started by hummer_4x4, Nov 18, 2019.

  1. hummer_4x4

    hummer_4x4

    Joined:
    Feb 3, 2013
    Posts:
    25
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    But what's the problem? PlayerLoop is just everything happening during the game loop, not something specific. Unity will attempt to hit the maximum framerate the hardware will allow, or that the project is configured to target, even in an empty project.
     
    JeffDUnity3D likes this.
  3. hummer_4x4

    hummer_4x4

    Joined:
    Feb 3, 2013
    Posts:
    25
    I want to get a low percentage of CPU load, i.e. I want to use as just a program without a goal on the game renderer. I only need UI, and nothing more. And in the end gives the maximum load.. How can I get the minimum CPU load?
     
  4. ibbybn

    ibbybn

    Joined:
    Jan 6, 2017
    Posts:
    193
    Put vsync on ( cap fps ) and don't profile in the editor.
     
  5. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Set Application.targetFrameRate to the lowest setting you can tolerate. Set the Fixed Timestep to the highest value which doesn't break the application, so you'll get fewer physics updates and fewer calls to FixedUpdate. Vsync as already mentioned might help. Set any graphics quality settings which hit the CPU to lower settings or disabled. Editor performance is meaningless, so as already mentioned don't do your profiling in the editor. Do it in a build or don't even look at it.

    https://docs.unity3d.com/ScriptReference/Application-targetFrameRate.html
    https://docs.unity3d.com/Manual/class-TimeManager.html
     
    hummer_4x4 likes this.
  6. hummer_4x4

    hummer_4x4

    Joined:
    Feb 3, 2013
    Posts:
    25
    Thanks, Set Application.targetFrameRate = 30
    Total cpu loaded 0.3% ~ 1%

    Thank you so much.
    Very helpful.