Speed techniques - arbuxsrc/replicube-techniques GitHub Wiki
Don't RETURN for 0 voxels
The game assumes that if there is no return value, it should default to 0.
Where possible, avoid the need for checking for or returning 0
The following has a size of 11 and a speed of 4.
if x==y then
return 1
else
return 0
end
Whereas the following is size of 8 and speed of 3.143:
if x==y then
return 1
end
-- Note that this otherwise will assume a default return of 0