I discovered with a past project that everything could run smoothly (mostly thinking about mobile here) until I added one too many sound files. I’m not talking huge mp3s, but once a few were added to the scene, it began crashing on mobile even before it could run-- straight out of the loading screen.
For my latest project, (PlayCanvas 3D HTML5 Game Engine) sound ambience and audible extras are a pretty big part of the experience. So two questions:
Am I wrong that sound files take an especially big toll on mobile? And if so, is there a workaround?
I’ve tested on a few different apple devices, mostly an iPhone 7 (which is a little old, but I want to reach as many people as possible). I’m hearing from a variety (though still a minority) of users that it is crashing on a variety of devices.
Is there a history of audio causing issues? Or am I mis-diagnosing?
There is a Mac/iOS Safari Positional Sound problem reported.
I have an iPhone 12 Pro myself. As far I have tested, no crash. I also have an iPhone 7 and a iPhone X. I will test it on that devices on a later moment.
I tested under those circumstances and no crashy-crashy. Laggy still, but here’s a strange thing: When I turned to landscape mode, everything suddenly ran smooth as silk, despite actually showing a lot more of the environment. The buttons became almost too small to use (and the text was unreadable, of course) but that’s a surprising result, isn’t it?
Indeed it is, I can’t imagine why putting it on landscape will increase performance like that. Unless the change in the camera frustum (viewport) hid part of the scene that was expensive rendering. But I don’t think that’s the case with your scene.