I remember the 100% CPU in editor bug that we had in the first Unity Linux Editor builds.
Then the problem got fixed, thank you by the way :). But now that i’m doing some testing with special features for a linux build its seems that the build puts the CPU at 100% no matter what i do. Even with no v-sync, low quality settings, empty scene, traget frame rate at 5fps and minized windows (Vulkan or openGL), it still has 100% of my CPU. And the fun part is that runing the same scene in the editor (the normal one, not the empy one) has only ~20% of the CPU.
So, you guys managed to fix the 100% CPU for the Editor, could you look in to the 100% CPU on the linux builds too? It might be related.
It seems that when the windows is minimized it uses 100% of one CPU. And when the window is focused it uses more than one CPU. Here is the profiler output for the empty scene.
If your kernel version from uname -r
is less than this one
4.13.13-300.fc27.x86_64
I’d recommend installing the newer kernel if you’ve done it before. Lots of GPU related changes have been distributed in 4.9-4.13 so if you’re using Ubuntu/Debian it’s probably 4.9.
The latest stable kernel is:
4.13 as far as I’m aware, I have had a far smoother experience with 4.13 rather than 4.9.
A focused Unity application without vsync enabled is expected to use 100% CPU. However, it looks like our Linux player has no concept of minimized/shaded, so I’ll add that to the backlog. I’m curious to see the player use ~140% though. What CPU do you have?