I have many functions bound to render stepped and I often do something like this:
runSvc:BindToRenderStep('run', 0, function()
something.CFrame = start:Lerp(fin, tick() - last > db and 0 or math.sin((tick() - last) / db * math.pi));
end)
Is this worse, better, or identical to the following since it has less boolean logic but a conditional?
runSvc:BindToRenderStep('run', 0, function()
if tick() - last > db then
something.CFrame = start;
else
something.CFrame = start:Lerp(fin, math.sin((tick() - last) / db * math.pi));
end
end)
Since I use the former option a ton, I started wondering about whether it would make a difference given that it runs every frame.