💬

Community answer

Collected from the ACE community Discord archive around 2024-02-02. It may be informal or outdated — anyone can edit this page to improve it. This topic changes between game versions — double-check before relying on it. Original discussion

Don't poll sound validity every tick

💬 GeneralUpdated 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.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.