xenko icon indicating copy to clipboard operation
xenko copied to clipboard

Constant high CPU usage

Open JohnnyBravo75 opened this issue 8 years ago • 9 comments

When I looked at the Gamestudio and I tried two of the initial samples. After I tried the samples, the GameStudio constantly uses 60% CPU on my i5 although I do nothing in the editor and just scroll around (the assests and all things were already complied). I waited 20 minutes if it gets better and some background work finishes, but the CPU usage stayed high.

What Is the editor doing all the time? After closing Xenko Game Editor, the ConnectionRouter (and EffectsCompiler) stays alive and uses CPU.

xenko-connectionrouter xenko-high-cpu

JohnnyBravo75 avatar Apr 01 '17 11:04 JohnnyBravo75

I'm pretty sure it's the rendering of the scene you have open. I had one scene open and was getting about 15-25% not 60% like you. After closing the scene CPU usage dropped down to 1-2% for the Game Studio process.

After closing the ConnectionRouter was using < 1 % for me. It does have a icon in the task tray you can close it yourself if you like. I think it stays open in case you open Game Studio again.

(Sorry for all the edits 😊 )

dfkeenan avatar Apr 01 '17 13:04 dfkeenan

I´m not moving the scene, just opening a sample inthe Xenk Game Editor and the CPU goes up to 80-90%. As you can see, the Windows Defender is permanently scanning when Xenko is open. Does it permanently write temp files or sent data between the Game-Editor and the Connection-Router which are suspicious?

I think it stays open in case you open Game Studio again.

You´re kidding, or? In the current state it is sadly complete unusable. When I move the scene or try to edit everything it starts to stutter. Letting processes open , which eat CPU, after closing the program, is bad programming practice. I´m sorry, I have to deinstall it.

xenko-high-cpu

JohnnyBravo75 avatar Apr 06 '17 19:04 JohnnyBravo75

The scene editor is effectively a game instance but not running all subsystems i.e. physics, scripting. It is updating/rendering constantly not just when you move. What system specs do you have? If you are using integrated graphics rendering would count as CPU usage (I think).

Not sure why the antimalware is so busy. I can't remember having such problems. But I remember seeing a bunch of people with issues regarding anti-virus/malware software.

If you post your PC specs and what anti-virus/malware software you have installed the Xenko devs might be able to help you. I'm surprised none of them have responded to you yet.

dfkeenan avatar Apr 06 '17 23:04 dfkeenan

Its a Dell Inspiron Notebook with an i5 and a AMD Radeon HD 8730M. The anti-virus is the standard Windows Defender (you can see on the taskmanager screenshot), no third party.

https://www.notebookcheck.net/Review-Dell-Inspiron-17R-5721-Notebook.88735.0.html

I can play a lot of 2-3 year old games with mid-details on 1920x1080. Perhaps Xenko is using the integrated graphics instead of the AMD Radeon, but this would not explain the weird permanent malware scanning?

JohnnyBravo75 avatar Apr 07 '17 20:04 JohnnyBravo75

I am also facing the same problem on my Toshiba i5 notebook with 8GB of RAM and Intel HD 3000 Graphics card. I am using ESET Smart Security for anti-virus. However, I tried turning the AV on/off and that doesn't seem to change anything. The Xenko process remains to use around 50% of my CPU. Any solutions found yet?

Habush avatar Apr 19 '17 21:04 Habush

I am seeing something similar on an i7-6700K, 64GB of RAM and a GTX1080 with an average consumption of 30% while not doing anything. Even minimizing the windows does only bring it down to 12-15% of consumption. As @dfkeenan pointed out thought. It seems to be highly tied to "if a scene is open". Basically, if you close all of your opened scenes, the CPU consumption will go down to 2-3% in my case.

You can also notice it outside of the editor with game as simple as the examples that will eat about 30% of CPU just running. Then I ran some extreme tests with spawning objects that pretty much do nothing and the CPU overhead grew as well (1000 cubes brought the CPU usage to something like 90% of CPU).

Hayaweh avatar Apr 21 '17 08:04 Hayaweh

5-12% CPU consumption by router+studio+defender with opened scene or without.

Timurid avatar Apr 23 '17 18:04 Timurid

I do not think I have high cpu usage (sitting at 25% right now, INTEL G3258 so nothing fancy), however I too experience heavy stutters whenever I perform an operation in the scene view like moving/rotating around the scene or performing transformations to an object, making the editor pretty much unusable right now. Disabling AV changes nothing. I'd like to empathize that this is not a mere drop in fps due to rendering, it's heavy stutters even in an empty scene.

Running Xenko 2.0.0.2.

Kinda bummed to see that this issue exist for quite sometimes and has not be acknowledged

ZackMD avatar Apr 28 '17 06:04 ZackMD

Sorry for the inconvenience.

We have been working on improving the performance between each version. We already identified and fixed some cases and we will continue to do so.

Note that when effects, assets or thumbnails are being compiled (as can be seen when a progress bar is visible at the bottom right) CPU usage can be high. But once those processing are finished it should go down.

Kryptos-FR avatar Apr 28 '17 07:04 Kryptos-FR