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
AudioStreamPlayer intermittently causes a huge lag spike when playing music or other longer audio files after the scene is first loaded. There is a large increase in Process Time in the profiler as shown below. Usually this occurs between 20 - 30 seconds after the scene is loaded and only occurs once, if it does occur. The scene only contains a Node2D with an AudioStreamPlayer attached.
Steps to reproduce
Create new project
Create an AudioStreamPlayer Node
Set a longer audio file to the stream
Set the AudioStreamPlayer to Autoplay
Run the project and monitor the profiler
Wait 30 seconds at least for a process time spike
If the spike does not occur, repeat steps 5 - 6 until the spike is seen.
My apologies, this issue might be just with my PC. I updated/reinstalled my graphics drivers to the latest driver and the issue became much more manageable. The spike still occurs, but it's only 60ms instead of >1000ms, which doesn't break my project anymore.
Additionally I was still able to detect a spike even when I removed the AudioStreamPlayer from the scene in the project. So it might not be related to the AudioStreamPlayer at all in the end.
Godot version
v4.1.2.stable.official [399c9dc]
System information
Godot v4.1.2.stable - Windows 10.0.22621 - Vulkan (Compatibility) - NVIDIA GeForce RTX 3080 (NVIDIA; 31.0.15.3699) - 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz (16 Threads)
Issue description
AudioStreamPlayer intermittently causes a huge lag spike when playing music or other longer audio files after the scene is first loaded. There is a large increase in Process Time in the profiler as shown below. Usually this occurs between 20 - 30 seconds after the scene is loaded and only occurs once, if it does occur. The scene only contains a Node2D with an AudioStreamPlayer attached.
Steps to reproduce
Minimal reproduction project
audio_bug.zip
The text was updated successfully, but these errors were encountered: