Fyrox icon indicating copy to clipboard operation
Fyrox copied to clipboard

Editor high CPU usage

Open hw762 opened this issue 2 years ago • 1 comments

It seems that the Fyrox editor eats 100% cpu (one core) even at idle. Is something spinning a loop? It would be nice if this usage can be reduced.

hw762 avatar Sep 05 '22 19:09 hw762

Make sure you've compiled the editor in release mode.

Apart from that I am also noticing 100% CPU usage in my game, seems to only happen after it's been left minimized for a while.

martin-t avatar Sep 06 '22 19:09 martin-t

I have experienced a similar CPU Usage issue. Issue to reproduce:

  • Start the Editor in Release mode
  • Click Play in the editor
  • Do not quit the game using the game window, but the Editor's Stop button

Result: CPU percentage usage increases.

I can repeat this indefinitely until my total CPU load is 100%.

Expected behavior: Same CPU Load/Usage as when closing the game from its own window.

One of the weird aspect of this issue, the CPU usage increase doesn't happen when the game is started, it happens when the game is closed.

Here is the CPU usage during the following procedure:

  • Start and stop the game from the editor several times
  • Close the editor

image

vpochapuis avatar Dec 19 '22 07:12 vpochapuis

Interesting bug, it is definitely should be fixed asap. Thanks for the report.

mrDIMAS avatar Dec 20 '22 16:12 mrDIMAS

I just opened the editor and it stood there, doing nothing but consuming 50% of the CPU. Same thing both in release and debug mode, both in the integrated Intel GPU and on the dedicated Nvidia. Tested on Ubuntu 22.04.2 LTS.

EDIT: upgraded to git master and now it is 100%

lvella avatar Jun 18 '23 18:06 lvella

Fixed in #520.

mrDIMAS avatar Sep 05 '23 17:09 mrDIMAS