-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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 uses CPU time in the background due to the audio server being kept active #55608
Comments
As a workaround, start the editor with the See also #38208, which fixes this issue in the project manager (but not the editor). Until something like #45948 is implemented on all platforms, we could add an editor setting to use the Dummy audio driver when editing any project. This way, you don't have to always specify the command line argument anymore. |
Start the editor with |
This is in 3.x or 4.x or both? This sounds like a new problem related to text to speech creating an audio output. 🤔 |
@lawnjelly This is only in 4.x branch. When I try 3.x with |
I guess we can postpone Is it causing significant CPU usage, or just listed in the audio mixer? |
@bruvzg Just to confirm, is there a project setting for text to speech? It should presumably be off by default unless required in the project. |
@bruvzg It is causing significant CPU usage for pulseaudio when using |
No, there's no option to disable it completely. But if it's causing issues, we probably should add one.
TTS is not affected by |
This regression (I'm presuming the text to speech) also appears to be happening in 3.x, I'm getting up to 11 percent CPU used by pulse audio with Godot audio switched off. I'll have a look at fixing this asap, as this is a big problem for low power computers. EDIT: I've added a separate issue for the TTS (#77124) .. it has a different cause so does deserve it's own issue. |
Godot version
3.4 Stable
System information
Windows 11 / Surface Pro 8 / i7 x86_64
Issue description
Having the editor open but minimised / unfocused eats up 1-2 hours of battery life. Cause seems to be continuous use of
Windows Audio Device Graph Isolation
.Desktop Window Manager
usage is also much higher than when the editor is closed.This can also be seen by running
powercfg /requests
in the terminal.Sometimes, but not consistently this also prevents sleep when closing the keyboard cover.
Might be analogous to these issues affecting MacOS:
#28039
#38154
Maybe this is a minor issue in the grand scheme of things, but usability is impacted when you have to keep opening and closing a project when you don't expect to work on it for even a hour less you sacrifice some battery!
Steps to reproduce
Open the editor
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: