cocos-engine
cocos-engine copied to clipboard
iOS Safari web audio sound crackles
Cocos Creator version
3.4.2
System information
iOS 15.4 Safari, iPhone 6S, iPhone 8, iPhone SE2
Issue description
Using AudioSource component to play sounds in many times. 5 minutes later, iPhone will be playing noise.
Relevant error log output
No response
Steps to reproduce
To play sounds in many times.
Minimal reproduction project
I have experienced the same with Howler, I think it has to do something with performance of the game, memory and stuff. I know sounds eat up a lot of memory at least. I don't think it's something related directly to the CC sound engine. Just my guess.
Yes, it's happening later with newer iPhone (more larger memory). But, I did many projects in 2.4.x version, they didn't seem to have this issue. Android works fine, either 2.4.x or 3.4.2.
@yoki0805 do you have the same drawcalls in CC2 as in CC3 in your games? I had myself slight issues with performance in CC3, for example opacity = 0 causes a drawcall in CC3 which it didn't in CC2. I have created this issue/suggestion for the drawcalls on invisible items https://github.com/cocos/cocos-engine/issues/11210.
No, they are different games, but I control the drawcalls in 70~100 times for my games.
Fixed at this PR