Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor CPU usage ramps up when unfocused or minimized #72401

Open
BenjaminHor opened this issue Jan 30, 2023 · 7 comments
Open

Editor CPU usage ramps up when unfocused or minimized #72401

BenjaminHor opened this issue Jan 30, 2023 · 7 comments

Comments

@BenjaminHor
Copy link

Godot version

v4.0.beta16.mono.official [518b9e5]

System information

macOS Ventura 13.1 (22C65), Apple M1 Max 32 GB

Issue description

Godot Editor seems to ramp up CPU usage when unfocused or minimized. However this only happens if the editor fills the entire view of your monitor. The behavior doesn't seem to occur if the editor isn't fully expanded. I've noticed that the CPU usage is even greater when the editor is minimized.

I've attached a screen recording of the minimizing and unfocusing behavior.

Screen.Recording.2023-01-30.at.13.20.10.mov

Steps to reproduce

In order to reproduce, create a fresh project and open the editor. Begin monitoring CPU usage during editor's focused and unfocused states as well as minimized states.

Minimal reproduction project

Reproduction of issue just requires a new project with no changes.

@Calinou
Copy link
Member

Calinou commented Jan 30, 2023

Can you reproduce this on 3.5.1?

Also, can you reproduce this after switching to the Mobile or Compatibility rendering methods in the top-right corner of the editor?

@BenjaminHor
Copy link
Author

Can you reproduce this on 3.5.1?

It doesn't occur on 3.5.1 under my hardware config

Also, can you reproduce this after switching to the Mobile or Compatibility rendering methods in the top-right corner of the editor?

I can confirm that all three rendering methods produce this issue.

@BenjaminHor
Copy link
Author

It's also interesting to see that average idle CPU usage of the editor is much higher in Godot 4

@BenjaminHor
Copy link
Author

I can confirm that even when the editor window size is slightly reduced, Godot 4 beta 17 is experiencing much higher CPU usage when MacOS goes into screen saver mode.

@Calinou
Copy link
Member

Calinou commented Feb 3, 2023

If you can compile from source, try using a C++ profiler on a debug build to see what's taking the most time.

@essial
Copy link

essial commented May 24, 2023

I'm not seeing this on my M2 Pro Mac mini. CPU is 2.2% when minimized, no noticeable difference in CPU usage in any state.

@BenjaminHor
Copy link
Author

I can confirm that the issue still persists in

v4.1.1.stable.official [bd6af8e]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants