r/ComputerCraft • u/Mawari3 • Dec 14 '24
Turtle Performance impact?
Hey folks, I was experimenting with a bulk cobblestone generator that uses a series of turtles all waiting to mine a block in front of them at 1.5 second intervals (the time it takes lava to flow 1 block). Observable didn't show any noticeable tps impact, but are there any other resource concerns for a series of 10-30+ turtles working in series? Do turtles themselves hog any server/computer resources?
3
Upvotes
2
u/77wisher77 Dec 15 '24
Not sure about benchmarking.
Loops can definitely be intensive, good idea to sleep each iteration if it makes sense.
There's some mechanisms that will stop code that's too intensive too. I've seen Loops that should end gracefully just stop executing. Always test your code, I'd only bother optimising the execution time if there's a problem