callumW / CityStrike

Prototype 3D Missile Command remake
0 stars 0 forks source link

Lag on first Audio Play #58

Open callumW opened 4 years ago

callumW commented 4 years ago

When playing audio, the game lags on the first instance of playing an audio file, but works find for future instances.

Initially I fixed this by playing the audio files at the start of the game at 0 volume. We should perhaps formally do this for all audio. Perhaps with an audio loading class, which goes and plays each audio file?

That or perhaps work out why the SCNAudioSource.load() function doesn't seem to work properly.