I created a Niagara effect that shoots shell casings out when the weapon is fired and when they hit the ground the spawn the sound. My question is about garbage collection and memory leaks. It’s my understanding that when a sound is complete it stays in memory until the GC takes care of it. With so many bullet casing sounds should I be concerned or is there a better way of removing the sound when it’s done?
1 Like
I don’t know specifically what the exact answer here is, but you could always use a small number of sounds ( 3 → 5 ) and loop around them ( just spawn them, so to not auto destroy, and then play them using the references ). Which would also give you some natural variety in the sound.