Hello devforum,
I see there is normal “functions” like spawn(function()), wait(), delay(), and so on
Then there’s task (task.spawn, task.wait, task.delay, and so on)
I know most people suggest using task.wait() over wait() but what about the others?
Can using the task manager for all these cause performance issues?
And, should I be using task.[function] over the “normal” versions?
(I use “” because I know they probably aren’t considered normal, rather a different method.)
The task library is generally more supported by roblox and is more accurate.
If I’m correct (Someone correct me if I’m wrong) but the task library uses the server’s heartbeat (See Here on that.)
The server’s heartbeat is generally better as it’s what is for all cients meaning it’s more accurate and more quicker. I’ve heard for the spawn function (See this) that task.spawn (Instead of just spawn) is 2x faster as well!
TL;DR: Task is more accurate and quicker than “Regular / Normal” functions.