So, I have a game where I use coroutines a lot, creating them many many times. Which way would create the least lag? I'm guessing the top one, but idk exactly, am I right?
local cocreate = coroutine.create
local coresume = coroutine.resume
coresume(cocreate(function() --first way
while wait() do
print("Test")
end
end))
or
coroutine.resume(coroutine.create(function() --second way
while wait() do
print("Test")
end
end))

2 comments
You won't see a difference. I recommend the first way if you are having to type 'coroutine.create' many times. It will save you time
Ok