Don't poll sound validity every tick
💬 General•Updated 2 days ago•0 views
No - it's wasteful. Just make a timer.create of the sound's length to remove/handle it when it ends, instead of checking validity every tick or pausing/resuming…
Is checking isValid(sound) every tick a good way to detect when a sound ends
No - it's wasteful. Just make a timer.create of the sound's length to remove/handle it when it ends, instead of checking validity every tick or pausing/resuming manually.