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

Audio: Using audio bus effect equalizer after playing a sound leads to a longer high cpu load period #42121

Open
Tracked by #76797
EadraxOffice opened this issue Sep 16, 2020 · 0 comments

Comments

@EadraxOffice
Copy link

EadraxOffice commented Sep 16, 2020

Godot version: Godot engine V3.2.1.stable X64

OS/device including version: Windows7 X64 Build 7601 SP1/ Linux X64 (custom build)

Issue description:

Playing a sound with a audiostreamplayer or a audiostreamplayer2D instance on a audio bus (cascacde) with enabled equalizer effect will lead to a high cpu load and frame timeouts after the sound play was finished. On larger godot project this results in a delay up to 10.000 msec or more where you also have load from GPU usage or gdscript usage. I have tested this behavior on Linux and on Windows with a small sample project.
Same behavior here too. In one of my sample project run (under Windows) the delay was just 22ms over a longer period but it shows the issue as well.

Disabling the equalizer (EQ21) effect in each audio bus by gdscript is solving the cpu usage problem immediately.

Steps to reproduce:

  • Place a audiostreamplayer in a node2d
  • Add audio busses and EQ21 effect like in the picture below:

2020-09-16 16_29_11-Godot Engine - equalizer_test - equalizer_test tscn

  • Set audiostreamplayer instance in the inspector to Bus "EQ2"
  • Start the godot editor debugger tab "Profile" and hit start.
  • Enable sub Master Eq21 and other audio bus effect for the measure
  • Play a short sample sound and look what happens after sound play has finished.

2020-09-16 16_30_54-Godot Engine - equalizer_test - equalizer_test tscn
equalizer_test.zip

Minimal reproduction project:

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

2 participants