You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In web export of my game after playing for a while, the audio starts to crackle. I think I narrowed it down to playing lots of audio samples over time. Even thought the audio samples are short and finish quickly, the cpu usage goes up over time and does not come back down.
Steps to reproduce
I've attached a simple project that plays 100 audio samples each time the 'play' button is pressed.
Export MRP as a no-thread web app. Open in Chrome or Firefox and open the browser's task manager.
Find WebAudioTest task and note CPU usage (starts low - a few % on my computer)
Click the play button a bunch of times. CPU starts increasing and doesn't drop again.
Eventually CPU usage becomes so high that audio starts to crackle as well.
MRP also includes a short python script to start a local server:
D:...\webaudiotest>python server.py
Poked around a bit and I think the root cause it that GodotPositionReportingProcessor.process always returns true and is forced to remain active and keeps processing (no data) even after the sample has finished playing.
Tested versions
v4.4.beta2.official [a013481]
System information
Godot v4.4.beta2 - Windows 11 (build 26100) - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 32.0.15.6636) - 13th Gen Intel(R) Core(TM) i7-13700KF (24 threads)
Issue description
In web export of my game after playing for a while, the audio starts to crackle. I think I narrowed it down to playing lots of audio samples over time. Even thought the audio samples are short and finish quickly, the cpu usage goes up over time and does not come back down.
Steps to reproduce
I've attached a simple project that plays 100 audio samples each time the 'play' button is pressed.
Export MRP as a no-thread web app. Open in Chrome or Firefox and open the browser's task manager.
Find WebAudioTest task and note CPU usage (starts low - a few % on my computer)
Click the play button a bunch of times. CPU starts increasing and doesn't drop again.
Eventually CPU usage becomes so high that audio starts to crackle as well.
MRP also includes a short python script to start a local server:
D:...\webaudiotest>python server.py
Minimal reproduction project (MRP)
webaudiotest.zip
The text was updated successfully, but these errors were encountered: