For a scenario where we have a gun firing sound and 100 instances of a gun in different locations, do we need to clone the sound 100 times for it to be spatial to each unique gun? For example:
for (const gun of guns) {
sound.cloneAsync({ cloneBuffer: false }).then(clonedSound => {
clonedSound.spatial.position.copyFrom(gun.position);
clonedSound.play();
});
}
I also noticed that the FPS decreases rapidly over time, which may be due to creating so many clones and not cleaning them up? Would anyone know the recommended way to clean these up?