2020.X high idle cpu

Below are my idle cpu usage graphs for Unity 2019.3 and 2020.1 with a new blank project. The same high cpu also occurs in 2020.2.
Seems something changed in the 2020 versions (for me at least).

6234432--686274--unity-cpu-2019.png

6234432--686280--unity-cpu-2020.1.png
I’m currently using mint 20 which is ubuntu 20 based but had same issue on mint 19 which was ubuntu 18 based.
I’m just interested if anyone using the Unity 2020 versions on the official ubuntu 18.04 has normal idle cpu usage like the 19.3 version above? That way I’ll know if it’s just mint (or my own comp) that has the problem.

same issue here, Fedora 32, NVIDIA 450.66.
as some have pointed out, setting Application.targetFrameRate to a low value eases the usage in play mode, but upon returning to edit mode it ramps up again. I’ve noticed that in the Game view in edit mode the stats show >3000 FPS even though vsync is enabled in quality settings.
This happens in both OpenGL and Vulkan

@JooleanLogic or @judgementAlex_1 are you able to submit a bug report?

I’m on nvidia 440.100. Same for me about vsync. Doesn’t seem to affect anything so I use the targetFrameRate to slow it down. This is unrelated to the high cpu usage issue though.

I’m on mint which isn’t supported so no. I really just want to know if anyone on official ubuntu 18.04 has the same problem. If users never looked at sys monitor, they wouldn’t know as the cpu usage isn’t such that it affects the performance of the editor. It’s high enough to stop me using it though as it’s simply burning/heating pointlessly.

1 Like

@JooleanLogic I am on Ubuntu 18.04 so will try to find some time and test it.
I am on 2019.x but will try the new one.
When you start new project, which render pipeline do you use, 3D/Universal/High?

Thanks senkal_.
I’m actually just using 2D but I’ve tried all modes and the idle cpu usage is the same whether 2D, 3D, URP or HDRP.
Also cpu usage remains the same even if Unity is minimised.

2 Likes

I am having the same problem: high CPU usage with any 2020.X release. I did submit a bug report. But I will also paste my report below:

1. What happened
I am running Ubuntu 18.04. I am using a modern, high-performance laptop with a Nvidia GPU. I am using Nvidia’s official driver (nvidia-driver-435).
Both of the lastest 2020.X releases of Unity (2020.1.1.f1 AND 2020.1.3.f1) are consuming too much of my CPU compared to earlier Unity versions.
Interestingly, 2020.X releases are causing the ‘Unity’ process and ‘Xorg’ (a.k.a. X11 display server) both to consume too much CPU:

  • The ‘Unity’ process averages at 75% of one core.
  • The ‘Xorg’ process averages at 60% of one core.
    On the other hand, 2019.X releases (the latest for example, 2019.3.2.f1) just have one process labeled ‘Main Thread’ which averages at about 20% of one core.
    This minor testing was done with a fresh, empty 3D scene (set up through Unity Hub’s wizard). No changes were made.

2. How we can reproduce it using the example you attached

  1. Run Ubuntu 18.04.
  2. Download Unity Hub and Unity Version 2020.1.3.f1, for example.
  3. Create a new ‘3D’ project using Unity Hub.
  4. Open this project in Unity.
  5. Notice the high CPU usage of the ‘Unity’ process and high CPU usage of the ‘Xorg’ process (using a Linux command line program like ‘top’).
  6. Now, compare CPU usage with any 2019.X release of Unity. Notice that the CPU usage is very high for the 2020.X release.

3. Here is misc. information about my system:

Output of “inxi -Fz”:

ceakins@parlance:~$ inxi -Fz
System: Host: parlance Kernel: 5.4.0-42-generic x86_64 bits: 64 Desktop: Gnome 3.28.4
Distro: Ubuntu 18.04.5 LTS
Machine: Device: laptop System: Acer product: Nitro AN515-53 v: V1.19 serial: N/A
Mobo: CFL model: Freed_CFS v: V1.19 serial: N/A UEFI: Insyde v: V1.19 date: 07/13/2018
Battery BAT1: charge: 44.9 Wh 100.0% condition: 44.9/48.9 Wh (92%)
CPU: Quad core Intel Core i5-8300H (-MT-MCP-) cache: 8192 KB
clock speeds: max: 4000 MHz 1: 3934 MHz 2: 3900 MHz 3: 3900 MHz 4: 3900 MHz 5: 3899 MHz 6: 3899 MHz
7: 3900 MHz 8: 3900 MHz
Graphics: Card-1: Intel Device 3e9b
Card-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile]
Display Server: x11 (X.Org 1.19.6 ) drivers: nvidia FAILED: modesetting Resolution: 1920x1080@60.02hz
OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 version: 4.6.0 NVIDIA 435.21
Audio: Card-1 NVIDIA GP107GL High Definition Audio Controller driver: snd_hda_intel
Card-2 Intel Cannon Lake PCH cAVS driver: snd_hda_intel
Sound: Advanced Linux Sound Architecture v: k5.4.0-42-generic
Network: Card-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi
IF: wlp0s20f3 state: up mac:
Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
IF: enp7s0f1 state: down mac:
Drives: HDD Total Size: 736.2GB (14.9% used)
ID-1: /dev/nvme0n1 model: INTEL_SSDPEKKW256G7 size: 256.1GB
ID-2: /dev/sda model: KINGSTON_SA400S3 size: 480.1GB
Partition: ID-1: / size: 430G used: 94G (23%) fs: ext4 dev: /dev/sda2
ID-2: swap-1 size: 10.10GB used: 0.00GB (0%) fs: swap dev: /dev/sda1
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 67.0C mobo: N/A gpu: 49C
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 418 Uptime: 44 min Memory: 5291.3/15854.5MB Client: Shell (bash) inxi: 2.3.56

Output of “inxi -r”:

ceakins@parlance:~$ inxi -r
Repos: Active apt sources in file: /etc/apt/sources.list
deb Index of /ubuntu bionic main restricted
deb Index of /ubuntu bionic-updates main restricted
deb Index of /ubuntu bionic universe
deb Index of /ubuntu bionic-updates universe
deb Index of /ubuntu bionic multiverse
deb Index of /ubuntu bionic-updates multiverse
deb Index of /ubuntu bionic-backports main restricted universe multiverse
deb Index of /ubuntu bionic-security main restricted
deb Index of /ubuntu bionic-security universe
deb Index of /ubuntu bionic-security multiverse
deb [arch=amd64] Index of linux/ubuntu/ bionic stable
Active apt sources in file: /etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-bionic.list
deb Index of /graphics-drivers/ppa/ubuntu bionic main
Active apt sources in file: /etc/apt/sources.list.d/inkscape_dev-ubuntu-stable-bionic.list
deb Index of /inkscape.dev/stable/ubuntu bionic main
Active apt sources in file: /etc/apt/sources.list.d/kelleyk-ubuntu-emacs-bionic.list
deb Index of /kelleyk/emacs/ubuntu bionic main
Active apt sources in file: /etc/apt/sources.list.d/lunarg-vulkan-1.2.131-bionic.list
deb Index of /vulkan/1.2.131/ bionic main
deb-src Index of /vulkan/1.2.131/ bionic main
Active apt sources in file: /etc/apt/sources.list.d/microsoft-prod.list
deb [arch=amd64] Index of /ubuntu/18.04/prod/ bionic main
Active apt sources in file: /etc/apt/sources.list.d/mikhailnov-ubuntu-pulseeffects-bionic.list
deb Index of /mikhailnov/pulseeffects/ubuntu bionic main
Active apt sources in file: /etc/apt/sources.list.d/mono-official-stable.list
deb https://download.mono-project.com/repo/ubuntu stable-bionic main
Active apt sources in file: /etc/apt/sources.list.d/regolith-linux-ubuntu-release-bionic.list
deb Index of /regolith-linux/release/ubuntu bionic main
Active apt sources in file: /etc/apt/sources.list.d/syncthing.list
deb https://apt.syncthing.net/ syncthing release
Active apt sources in file: /etc/apt/sources.list.d/vivaldi-snapshot.list
deb Index of /snapshot/deb/ stable main
Active apt sources in file: /etc/apt/sources.list.d/vscode.list
deb [arch=amd64] Index of /repos/vscode/ stable main
Active apt sources in file: /etc/apt/sources.list.d/wavebox-core.list
deb [arch=amd64] https://download.wavebox.app/core/linux/deb/ amd64/

P.S. If a member of the Unity team wants to contact me in order to troubleshoot this issue, I welcome it. I would love to help.

2 Likes

For others experiencing this problem, this is the response I got from the Unity QA team regarding the bug:

Thanks for getting in touch, we actually know about this issue. Unfortunately, it does not have a public Issue Tracker link. At the moment, the issue is fixed in 2020.2.0a21 and a fix should be coming to 2020.1 shortly.

Please reach out to me if I can answer any questions or be of further help.

So, the fix should be coming soon! In the meantime, if your project allows, try using the last 2019 release.

2 Likes

Thanks @coltoneakins
For me this is not an issue but can imagine it’s annoying for somebody on 2020.
It just shows that, despite Linux was planned earlier to be officially supported, it is still a long way to go.

Awesome, thanks coltoneakins.
Glad it wasn’t just mint. The problem is fixed in 2020.2.0b1.
Unfortunately the 10fps bug (#1271213) still exists.

I’m using 2020.3.32f1 Windows 10 and still happening. Please, resolve this issue, even with Unity editor not playing and minimized, after 3 min. my PC cooler fan spins like it’s breaking. Anybody else having the issue?

2 Likes

I was having the same issue and it turned out to be caused by the ProBuilder window being open and docked specifically in the bottom left corner of the editor layout. CPU usage dropped back down to normal as soon as I closed it or moved it to any other place in the editor layout. Really weird.

1 Like

I am using Unity 2022.3.4f1 Win10, and the issue is still happening, even when the editor is minimized. The issue occurs even on a new empty project.

My laptop fans are frying, pls help.

Try going to Edit > Preferences > General and change the Interaction Mode setting.

2 Likes

I did it, the CPU usage is now lower hovering around 8-14% when the editor is minimized, any more things I can do ?

I encountered the same CPU high usage problem on Unity 2022.3. I’ve already set my Interaction Mode setting as “16ms”“100ms” and every thing was good until I open the Tile Palette window. When drawing tilemaps, the CPU usage increases to 20% and GPU usage to around 10%. I don’t know what’s wrong but I think it has some connections with the tile palette, at least in my case.

Problem solved when drawing maps with the tiles from the palette. Strange. All I changed was setting the Tilemap sorting layer and the CPU usage dropped to 2% and my laptop fan stopped.