FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.64k stars 343 forks source link

Editor high CPU usage #360

Closed hw762 closed 1 year ago

hw762 commented 2 years ago

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.

martin-t commented 2 years ago

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.

vpochapuis commented 1 year ago

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

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:

image

mrDIMAS commented 1 year ago

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

lvella commented 1 year ago

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%

mrDIMAS commented 1 year ago

Fixed in #520.