So let’s say I wanna generate a 50x20x50 cuboid of parts (as an example). What would be the best way to do that without crashing the server(/hitting the script execution timeout) or waiting ages for the parts to generate?
maybe in chunks made of multiple parts
Cloning alot of parts is laggy and generating them in chunks of parts (like 50 a tick) is also laggy
Use parallel lua. In this case, I guess 20 actors (one actor for each layer) is reasonable.
In regards to created parts per second, that is best to determine via experimentation on an live server.
From what I can tell, that doesn’t look very flexible